aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng')
-rw-r--r--test/ng/rootScopeSpec.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/test/ng/rootScopeSpec.js b/test/ng/rootScopeSpec.js
index 35be7a2f..3faeb162 100644
--- a/test/ng/rootScopeSpec.js
+++ b/test/ng/rootScopeSpec.js
@@ -668,8 +668,8 @@ describe('Scope', function() {
}));
- it('should allow cancelation of event propagation', function() {
- child.$on('myEvent', function(event) { event.cancel(); });
+ it('should allow stopping event propagation', function() {
+ child.$on('myEvent', function(event) { event.stopPropagation(); });
grandChild.$emit('myEvent');
expect(log).toEqual('2>1>');
});
@@ -685,17 +685,6 @@ describe('Scope', function() {
});
- it('should return event object with cancelled property', function() {
- child.$on('some', function(event) {
- event.cancel();
- });
-
- var result = grandChild.$emit('some');
- expect(result).toBeDefined();
- expect(result.cancelled).toBe(true);
- });
-
-
describe('event object', function() {
it('should have methods/properties', function() {
var event;