summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladislav Zarakovsky <vlad.zar@gmail.com>2015-11-25 10:29:29 +0300
committerVladislav Zarakovsky <vlad.zar@gmail.com>2015-11-25 10:29:29 +0300
commitdf992f790d8b46c445ee83a637f7fdb5e647c93f (patch)
treec88832ddb810364eaeede3583fd5ac48af2d5253
parentb08fd22a8e35457b213ba5b8a035002113797454 (diff)
downloadawesomplete-df992f790d8b46c445ee83a637f7fdb5e647c93f.zip
awesomplete-df992f790d8b46c445ee83a637f7fdb5e647c93f.tar.gz
awesomplete-df992f790d8b46c445ee83a637f7fdb5e647c93f.tar.bz2
Fix tests run in Firefox
-rw-r--r--test/events/submitSpec.js4
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 () {