Skip to content

Commit 4e3c48f

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. (cherry-picked from 087d280) Fixes gh-1938 Closes gh-2028
1 parent 2524da0 commit 4e3c48f

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
@@ -136,7 +136,7 @@ test("Data is not being set on comment and text nodes", function() {
136136
test("jQuery.acceptData", function() {
137137
expect( 11 );
138138

139-
var flash, applet;
139+
var flash, pdf;
140140

141141
ok( jQuery.acceptData( document ), "document" );
142142
ok( jQuery.acceptData( document.documentElement ), "documentElement" );
@@ -148,9 +148,9 @@ test("jQuery.acceptData", function() {
148148
flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" );
149149
ok( jQuery.acceptData( flash ), "flash" );
150150

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

155155
ok( !jQuery.acceptData( document.createComment( "" ) ), "comment" );
156156
ok( !jQuery.acceptData( document.createTextNode( "" ) ), "text" );

0 commit comments

Comments
 (0)