aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-09-14 21:13:44 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-09-14 21:13:44 +0200
commit64fd7ef3d081b5c65d541237f73a4d89f0f0ad7b (patch)
tree3c809b1ab8e242632a907b556727afdf6029f153
parentcea94a83c7a5c5df6da578d417e5fb26152b19e1 (diff)
downloadjquery-64fd7ef3d081b5c65d541237f73a4d89f0f0ad7b.tar.gz
jquery-64fd7ef3d081b5c65d541237f73a4d89f0f0ad7b.zip
Tests: Account for Edge in originalEvent UA-sniffs
All other cases where Edge user agent needed to be taken into account in tests have already been resolved. Fixes gh-2357
-rw-r--r--test/unit/event.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 0f0c9e6df..797078361 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -2779,14 +2779,12 @@ QUnit.test( "Donor event interference", function( assert ) {
jQuery( "#donor-input" )[ 0 ].click();
} );
-QUnit.test( "originalEvent property for Chrome, Safari and FF of simulated event", function( assert ) {
+QUnit.test( "originalEvent property for Chrome, Safari, Fx & Edge of simulated event", function( assert ) {
var userAgent = window.navigator.userAgent;
- if ( !( /chrome/i.test( userAgent ) ||
- /firefox/i.test( userAgent ) ||
- /safari/i.test( userAgent ) ) ) {
+ if ( !( /firefox/i.test( userAgent ) || /safari/i.test( userAgent ) ) ) {
assert.expect( 1 );
- assert.ok( true, "Assertions should run only in Chrome, Safari and FF" );
+ assert.ok( true, "Assertions should run only in Chrome, Safari, Fx & Edge" );
return;
}
@@ -2812,7 +2810,7 @@ QUnit.test( "originalEvent property for Chrome, Safari and FF of simulated event
jQuery( "#donor-input" ).trigger( "focus" );
} );
-// This tests are unreliable in Firefox
+// These tests are unreliable in Firefox
if ( !( /firefox/i.test( window.navigator.userAgent ) ) ) {
QUnit.test( "Check order of focusin/focusout events", function( assert ) {
assert.expect( 2 );