From 95c0a10e15477a5031185e2d656d896905562afa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Wed, 25 Mar 2015 19:46:00 +0100 Subject: [PATCH] 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 Closes gh-2166 --- test/unit/data.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/unit/data.js b/test/unit/data.js index d4cc14b97..7330f02cd 100644 --- a/test/unit/data.js +++ b/test/unit/data.js @@ -159,10 +159,6 @@ test("jQuery.data()", 25, function() { dataTests( document.createElement("embed") ); }); -test("jQuery.data()", 25, function() { - dataTests( document.createElement("applet") ); -}); - test("jQuery.data(object/flash)", 25, function() { var flash = document.createElement("object"); flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ); @@ -766,14 +762,15 @@ test(".data doesn't throw when calling selection is empty. #13551", function() { } }); -test("jQuery.acceptData", 11, function() { +test("jQuery.acceptData", function() { + expect( 10 ); + var flash, pdf; ok( jQuery.acceptData( document ), "document" ); ok( jQuery.acceptData( document.documentElement ), "documentElement" ); ok( jQuery.acceptData( {} ), "object" ); ok( jQuery.acceptData( document.createElement( "embed" ) ), "embed" ); - ok( jQuery.acceptData( document.createElement( "applet" ) ), "applet" ); flash = document.createElement( "object" ); flash.setAttribute( "classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ); -- 2.39.5