Skip to content

Commit

Permalink
Data: Drop the tests relying on applets
Browse files Browse the repository at this point in the history
BrowserStack regularly has outdated Java in their IE instances causing our
data tests to hang & give no output. Skip the tests that create applets,
applets are treated in the same way as an embed elements which we're already
testing.

(partially cherry-picked from a4a18e8)

Fixes gh-1938
Refs gh-2028
Refs gh-2166
  • Loading branch information
mgol committed Mar 25, 2015
1 parent 4a704d1 commit 852529c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/unit/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,22 @@ test("Data is not being set on comment and text nodes", function() {
});

test("jQuery.acceptData", function() {
expect( 11 );
expect( 10 );

var flash, applet;
var flash, pdf;

ok( jQuery.acceptData( document ), "document" );
ok( jQuery.acceptData( document.documentElement ), "documentElement" );
ok( jQuery.acceptData( {} ), "object" );
ok( !jQuery.acceptData( document.createElement( "embed" ) ), "embed" );
ok( !jQuery.acceptData( document.createElement( "applet" ) ), "applet" );

flash = document.createElement( "object" );
flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" );
ok( jQuery.acceptData( flash ), "flash" );

applet = document.createElement( "object" );
applet.setAttribute( "classid", "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" );
ok( !jQuery.acceptData( applet ), "applet" );
pdf = document.createElement( "object" );
pdf.setAttribute( "classid", "clsid:CA8A9780-280D-11CF-A24D-444553540000" );
ok( !jQuery.acceptData( pdf ), "pdf" );

ok( !jQuery.acceptData( document.createComment( "" ) ), "comment" );
ok( !jQuery.acceptData( document.createTextNode( "" ) ), "text" );
Expand Down Expand Up @@ -682,4 +681,4 @@ testIframeWithCallback( "enumerate data attrs on body (#14894)", "data/dataAttrs
expect(1);

equal(result, "ok", "enumeration of data- attrs on body" );
});
});

0 comments on commit 852529c

Please sign in to comment.