diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-01-07 23:26:12 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-01-07 23:26:12 +0100 |
commit | 27325311db4807f52d66e592d832c55ab0a203df (patch) | |
tree | 5ca634b3968fabbc2b8435a010b3b6378729c74f /test | |
parent | 1a9c9b079177a1d6420efb876e8e66bf1fb4cbe2 (diff) | |
download | jquery-27325311db4807f52d66e592d832c55ab0a203df.tar.gz jquery-27325311db4807f52d66e592d832c55ab0a203df.zip |
Tests: Accept Android 2.3 doesn't fire window.onerror for remote scripts
A followup to 1a9c9b079177a1d6420efb876e8e66bf1fb4cbe2
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/manipulation.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index acf71635a..f4687dcb0 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -2293,7 +2293,10 @@ QUnit.test( "Ensure oldIE creates a new set on appendTo (#8894)", function( asse } ); QUnit.test( "html() - script exceptions bubble (#11743)", function( assert ) { - assert.expect( 3 ); + // Support: Android 2.3 only + // Android 2.3 doesn't fire window.onerror for errors in remote scripts + // but we accept this reality. + assert.expect( /android 2\.3/i.test( navigator.userAgent ) ? 2 : 3 ); assert.throws(function() { jQuery("#qunit-fixture").html("<script>undefined(); ok( false, 'Exception not thrown' );</script>"); |