diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-14 18:53:01 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-14 18:53:01 +0200 |
commit | 65c225533b9e9f9b609617efab7211bf0e536a6a (patch) | |
tree | 945eade4d3dc84bf83ae4ddf167d68ca97fba363 /tests/unit/draggable | |
parent | 36cb3f7da35ed18c726f0345d5156fb136065dd1 (diff) | |
download | jquery-ui-65c225533b9e9f9b609617efab7211bf0e536a6a.tar.gz jquery-ui-65c225533b9e9f9b609617efab7211bf0e536a6a.zip |
Unit tests: Try to disable tests only for testswarm; if this works, I'll modify the other ones as well
Diffstat (limited to 'tests/unit/draggable')
-rw-r--r-- | tests/unit/draggable/draggable.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html index 050d37704..2be472a50 100644 --- a/tests/unit/draggable/draggable.html +++ b/tests/unit/draggable/draggable.html @@ -13,17 +13,25 @@ <link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/> <script type="text/javascript" src="../../../external/qunit.js"></script> <script type="text/javascript" src="../../jquery.simulate.js"></script> - <script type="text/javascript" src="../testsuite.js"></script> - <!-- <script type="text/javascript" src="draggable_core.js"></script> <script type="text/javascript" src="draggable_defaults.js"></script> <script type="text/javascript" src="draggable_events.js"></script> <script type="text/javascript" src="draggable_methods.js"></script> <script type="text/javascript" src="draggable_options.js"></script> <script type="text/javascript" src="draggable_tickets.js"></script> - --> - <script type="text/javascript">test("draggable", function() { ok(true, "disabled draggable testsuite"); });</script> + + <script type="text/javascript"> + // disable this stale testsuite for testswarm only + var url = window.location.search; + url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) ); + if ( url && url.indexOf("http") == 0 ) { + // reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script + QUnit.init(); + test("draggable", function() { ok(true, "disabled draggable testsuite"); }); + } + </script> + <script type="text/javascript" src="../testsuite.js"></script> </head> <body> |