Skip to content

Commit 2732531

Browse files
committed
Tests: Accept Android 2.3 doesn't fire window.onerror for remote scripts
A followup to 1a9c9b0
1 parent 1a9c9b0 commit 2732531

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/manipulation.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,10 @@ QUnit.test( "Ensure oldIE creates a new set on appendTo (#8894)", function( asse
22932293
} );
22942294

22952295
QUnit.test( "html() - script exceptions bubble (#11743)", function( assert ) {
2296-
assert.expect( 3 );
2296+
// Support: Android 2.3 only
2297+
// Android 2.3 doesn't fire window.onerror for errors in remote scripts
2298+
// but we accept this reality.
2299+
assert.expect( /android 2\.3/i.test( navigator.userAgent ) ? 2 : 3 );
22972300

22982301
assert.throws(function() {
22992302
jQuery("#qunit-fixture").html("<script>undefined(); ok( false, 'Exception not thrown' );</script>");

0 commit comments

Comments
 (0)