diff options
Diffstat (limited to 'test/events/submitSpec.js')
-rw-r--r-- | test/events/submitSpec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/events/submitSpec.js b/test/events/submitSpec.js index 6151468..ea0fa22 100644 --- a/test/events/submitSpec.js +++ b/test/events/submitSpec.js @@ -10,6 +10,10 @@ describe("form submit event", function () { spyOn(Awesomplete.prototype, "close"); this.subject.input.focus(); this.subject.open(); + // prevent full page reload in Firefox, which causes tests to stop running + $.on(this.subject.input.form, "submit", function(evt) { + evt.preventDefault(); + }); }); it("closes completer", function () { |