Skip to content

Commit 4c3e63b

Browse files
committed
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. (cherry-picked from 64fd7ef) Fixes gh-2357
1 parent 4b1cff6 commit 4c3e63b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/unit/event.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,14 +2848,12 @@ QUnit.test( "originalEvent property for IE8", function( assert ) {
28482848
jQuery( "#donor-input" )[ 0 ].click();
28492849
} );
28502850

2851-
QUnit.test( "originalEvent property for Chrome, Safari and FF of simulated event", function( assert ) {
2851+
QUnit.test( "originalEvent property for Chrome, Safari, Fx & Edge of simulated event", function( assert ) {
28522852
var userAgent = window.navigator.userAgent;
28532853

2854-
if ( !( /chrome/i.test( userAgent ) ||
2855-
/firefox/i.test( userAgent ) ||
2856-
/safari/i.test( userAgent ) ) ) {
2854+
if ( !( /firefox/i.test( userAgent ) || /safari/i.test( userAgent ) ) ) {
28572855
assert.expect( 1 );
2858-
assert.ok( true, "Assertions should run only in Chrome, Safari and FF" );
2856+
assert.ok( true, "Assertions should run only in Chrome, Safari, Fx & Edge" );
28592857
return;
28602858
}
28612859

@@ -2881,7 +2879,7 @@ QUnit.test( "originalEvent property for Chrome, Safari and FF of simulated event
28812879
jQuery( "#donor-input" ).trigger( "focus" );
28822880
} );
28832881

2884-
// This tests are unreliable in Firefox
2882+
// These tests are unreliable in Firefox
28852883
if ( !( /firefox/i.test( window.navigator.userAgent ) ) ) {
28862884
QUnit.test( "Check order of focusin/focusout events", function( assert ) {
28872885
assert.expect( 2 );

0 commit comments

Comments
 (0)