angular.js/test/ng/directive
Igor Minar 263f47819f test(form): fix broken preventDefault test
the original test relied on incorrect assumptions about how jasmine async
tests work (when setTimeout is triggered) and how browser reloads a page
(the sequence of events) and thus the test passes even when the default
is not prevented.

this change fixes the test by registering an extra submit event handler
that checks if the default was prevented.

if the default was not prevented, the test will fail and the page will
be reloaded causing the test runner to panic.
2012-08-10 14:20:52 -07:00
..
aSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
booleanAttrsSpec.js fix(ngSrc,ngHref): binding should set element prop as well as attr 2012-05-06 23:01:33 -07:00
formSpec.js test(form): fix broken preventDefault test 2012-08-10 14:20:52 -07:00
inputSpec.js feat($compile): simplify isolate scope bindings 2012-06-08 15:50:13 -07:00
ngBindSpec.js chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
ngClassSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngClickSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngCloakSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngControllerSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngCspSpec.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
ngEventDirsSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngIncludeSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngInitSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngNonBindableSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngPluralizeSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngRepeatSpec.js fix(ngRepeat): expose $first, $middle and $last instead of $position 2012-05-22 14:18:15 -07:00
ngShowHideSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngStyleSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngSwitchSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngViewSpec.js feat($route): rename template -> tempalteUrl and add support for inline templates 2012-06-01 17:01:10 -07:00
scriptSpec.js fix(script): Incorrectly reading script text on ie 2012-04-20 11:29:34 -07:00
selectSpec.js fix(select): don't interfere with selection if not databound 2012-05-02 14:24:43 -07:00
styleSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00