aboutsummaryrefslogtreecommitdiffstats
path: root/test/BinderSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2012-02-06 21:56:35 -0800
committerMisko Hevery2012-02-21 22:46:00 -0800
commit1752c8c44a7058e974ef208e583683eac8817789 (patch)
treea8d49ecfd96e739f2de12a9b71385b46ad3c0cf7 /test/BinderSpec.js
parent6216dc046510204bafd159dba17ce0cc22db6c08 (diff)
downloadangular.js-1752c8c44a7058e974ef208e583683eac8817789.tar.bz2
feat(directive): event now accessible as $event
Closes 259
Diffstat (limited to 'test/BinderSpec.js')
-rw-r--r--test/BinderSpec.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/BinderSpec.js b/test/BinderSpec.js
index b869c616..f7a1c1b3 100644
--- a/test/BinderSpec.js
+++ b/test/BinderSpec.js
@@ -438,30 +438,6 @@ describe('Binder', function() {
assertChild(5, false);
}));
- it('ItShouldDisplayErrorWhenActionIsSyntacticlyIncorrect', function() {
- module(function($exceptionHandlerProvider){
- $exceptionHandlerProvider.mode('log');
- });
- inject(function($rootScope, $exceptionHandler, $log, $compile) {
- element = $compile(
- '<div>' +
- '<input type="button" ng:click="greeting=\'ABC\'"/>' +
- '<input type="button" ng:click=":garbage:"/>' +
- '</div>')($rootScope);
- var first = jqLite(element.find('input')[0]);
- var second = jqLite(element.find('input')[1]);
- var errorLogs = $log.error.logs;
-
- browserTrigger(first, 'click');
- expect($rootScope.greeting).toBe('ABC');
- expect(errorLogs).toEqual([]);
-
- browserTrigger(second, 'click');
- expect($exceptionHandler.errors[0]).
- toMatchError(/Syntax Error: Token ':' not a primary expression/);
- });
- });
-
it('ItShouldSelectTheCorrectRadioBox', inject(function($rootScope, $compile) {
element = $compile(
'<div>' +