summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-10-07 17:59:10 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-10-07 17:59:10 -0400
commitdbf9ccbcfe788beb24cda34b0d86b7e12ecdf4bb (patch)
tree682860207f02713f2c3b3438d2317bde51a85f8f /spec/javascripts
parentfcf99d0d09d63d0662290658ebc1e366bfc11bf0 (diff)
downloadgitlab-ce-dbf9ccbcfe788beb24cda34b0d86b7e12ecdf4bb.tar.gz
Check originalEvent.repeat *and* event.repeatrs-quick-submit
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.coffee5
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))