diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-01-25 01:32:54 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-01-29 04:33:28 +0100 |
commit | 087d280ad1160de53a45ea96184911194f7b46e0 (patch) | |
tree | 20544c680a1f2956020a2ffaa21adfecf34a1013 /test/unit/data.js | |
parent | 31f4f8e3f30e67e677a2aa167b9e894d46d5b81e (diff) | |
download | jquery-087d280ad1160de53a45ea96184911194f7b46e0.tar.gz jquery-087d280ad1160de53a45ea96184911194f7b46e0.zip |
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
Diffstat (limited to 'test/unit/data.js')
-rw-r--r-- | test/unit/data.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/data.js b/test/unit/data.js index d6d06e28b..d4cc14b97 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -767,7 +767,7 @@ test(".data doesn't throw when calling selection is empty. #13551", function() { }); test("jQuery.acceptData", 11, function() { - var flash, applet; + var flash, pdf; ok( jQuery.acceptData( document ), "document" ); ok( jQuery.acceptData( document.documentElement ), "documentElement" ); @@ -779,9 +779,9 @@ test("jQuery.acceptData", 11, 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" ); |