Skip to content

Commit 64fd7ef

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. Fixes gh-2357
1 parent cea94a8 commit 64fd7ef

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
@@ -2779,14 +2779,12 @@ QUnit.test( "Donor event interference", function( assert ) {
27792779
jQuery( "#donor-input" )[ 0 ].click();
27802780
} );
27812781

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

2785-
if ( !( /chrome/i.test( userAgent ) ||
2786-
/firefox/i.test( userAgent ) ||
2787-
/safari/i.test( userAgent ) ) ) {
2785+
if ( !( /firefox/i.test( userAgent ) || /safari/i.test( userAgent ) ) ) {
27882786
assert.expect( 1 );
2789-
assert.ok( true, "Assertions should run only in Chrome, Safari and FF" );
2787+
assert.ok( true, "Assertions should run only in Chrome, Safari, Fx & Edge" );
27902788
return;
27912789
}
27922790

@@ -2812,7 +2810,7 @@ QUnit.test( "originalEvent property for Chrome, Safari and FF of simulated event
28122810
jQuery( "#donor-input" ).trigger( "focus" );
28132811
} );
28142812

2815-
// This tests are unreliable in Firefox
2813+
// These tests are unreliable in Firefox
28162814
if ( !( /firefox/i.test( window.navigator.userAgent ) ) ) {
28172815
QUnit.test( "Check order of focusin/focusout events", function( assert ) {
28182816
assert.expect( 2 );

0 commit comments

Comments
 (0)