From 4e3c48f239f0ed265a53a33dfda1ba7dc6223db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Sun, 25 Jan 2015 01:32:54 +0100 Subject: [PATCH] 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 087d280ad1160de53a45ea96184911194f7b46e0) Fixes gh-1938 Closes gh-2028 --- test/unit/data.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/data.js b/test/unit/data.js index a3b5384fd..e7f701771 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -136,7 +136,7 @@ test("Data is not being set on comment and text nodes", function() { test("jQuery.acceptData", function() { expect( 11 ); - var flash, applet; + var flash, pdf; ok( jQuery.acceptData( document ), "document" ); ok( jQuery.acceptData( document.documentElement ), "documentElement" ); @@ -148,9 +148,9 @@ test("jQuery.acceptData", function() { 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" );