Skip to content

Commit a4a18e8

Browse files
committedMar 25, 2015
Data: Drop the tests relying on applets
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. Fixes gh-1938 Refs gh-2028 Refs gh-2166
1 parent 136f1dc commit a4a18e8

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed
 

‎test/unit/data.js

+8-11
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ test("jQuery.data(<embed>)", 25, function() {
159159
dataTests( document.createElement("embed") );
160160
});
161161

162-
test("jQuery.data(<applet>)", 25, function() {
163-
dataTests( document.createElement("applet") );
164-
});
165-
166162
test("jQuery.data(object/flash)", 25, function() {
167163
var flash = document.createElement("object");
168164
flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" );
@@ -766,22 +762,23 @@ test(".data doesn't throw when calling selection is empty. #13551", function() {
766762
}
767763
});
768764

769-
test("jQuery.acceptData", 11, function() {
770-
var flash, applet;
765+
test("jQuery.acceptData", function() {
766+
expect( 10 );
767+
768+
var flash, pdf;
771769

772770
ok( jQuery.acceptData( document ), "document" );
773771
ok( jQuery.acceptData( document.documentElement ), "documentElement" );
774772
ok( jQuery.acceptData( {} ), "object" );
775773
ok( jQuery.acceptData( document.createElement( "embed" ) ), "embed" );
776-
ok( jQuery.acceptData( document.createElement( "applet" ) ), "applet" );
777774

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

782-
applet = document.createElement( "object" );
783-
applet.setAttribute( "classid", "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" );
784-
ok( jQuery.acceptData( applet ), "applet" );
779+
pdf = document.createElement( "object" );
780+
pdf.setAttribute( "classid", "clsid:CA8A9780-280D-11CF-A24D-444553540000" );
781+
ok( jQuery.acceptData( pdf ), "pdf" );
785782

786783
ok( !jQuery.acceptData( document.createComment( "" ) ), "comment" );
787784
ok( !jQuery.acceptData( document.createTextNode( "" ) ), "text" );
@@ -806,4 +803,4 @@ testIframeWithCallback( "enumerate data attrs on body (#14894)", "data/dataAttrs
806803
expect(1);
807804

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

0 commit comments

Comments
 (0)