diff options
| author | Igor Minar | 2012-08-07 22:03:02 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-08-10 14:20:52 -0700 |
| commit | 263f47819fa0f4510a5318778a1d3b5cb55fe4aa (patch) | |
| tree | a2f75fb0c21b35684de28d19be7a01eaff7eccbb /src/ng/directive/form.js | |
| parent | 6b75475ce3e3ab03570b500461c869386f4fc84d (diff) | |
| download | angular.js-263f47819fa0f4510a5318778a1d3b5cb55fe4aa.tar.bz2 | |
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.
Diffstat (limited to 'src/ng/directive/form.js')
0 files changed, 0 insertions, 0 deletions
