Skip to content

Commit e697897

Browse files
committed
Data: Use a PDF object instead of a Java applet for acceptData testing
This should fix "Java out of date" errors on BrowserStack. Fixes gh-1938 Closes gh-2028
1 parent a5e1c9b commit e697897

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/data.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ test(".data doesn't throw when calling selection is empty. #13551", function() {
767767
});
768768

769769
test("jQuery.acceptData", 11, function() {
770-
var flash, applet;
770+
var flash, pdf;
771771

772772
ok( jQuery.acceptData( document ), "document" );
773773
ok( jQuery.acceptData( document.documentElement ), "documentElement" );
@@ -779,9 +779,9 @@ test("jQuery.acceptData", 11, function() {
779779
flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" );
780780
ok( jQuery.acceptData( flash ), "flash" );
781781

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

786786
ok( !jQuery.acceptData( document.createComment( "" ) ), "comment" );
787787
ok( !jQuery.acceptData( document.createTextNode( "" ) ), "text" );

0 commit comments

Comments
 (0)