diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-10-08 00:59:10 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-10-08 00:59:10 +0300 |
commit | dbf9ccbcfe788beb24cda34b0d86b7e12ecdf4bb (patch) | |
tree | 682860207f02713f2c3b3438d2317bde51a85f8f /spec/javascripts | |
parent | fcf99d0d09d63d0662290658ebc1e366bfc11bf0 (diff) |
Check originalEvent.repeat *and* event.repeat
phantomjs < 2.0 doesn't support creating `KeyboardEvent` so the tests
were failing on CI
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/behaviors/quick_submit_spec.js.coffee | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/javascripts/behaviors/quick_submit_spec.js.coffee b/spec/javascripts/behaviors/quick_submit_spec.js.coffee index fd20f674746..09708c12ed4 100644 --- a/spec/javascripts/behaviors/quick_submit_spec.js.coffee +++ b/spec/javascripts/behaviors/quick_submit_spec.js.coffee @@ -67,7 +67,4 @@ describe 'Quick Submit behavior', -> else defaults = { keyCode: 13, ctrlKey: true } - args = $.extend({}, defaults, options) - originalEvent = new KeyboardEvent('keydown', args) - - $.Event('keydown', $.extend({}, args, {originalEvent: originalEvent})) + $.Event('keydown', $.extend({}, defaults, options)) |