diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-14 19:02:03 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-14 19:02:03 +0200 |
commit | 9e8e339648901899827a58e5bf919f7dda03b88e (patch) | |
tree | 1b80576996a03b3f883e9f66c49682eb727bde7a /tests/unit/selectable/selectable.html | |
parent | 65c225533b9e9f9b609617efab7211bf0e536a6a (diff) | |
download | jquery-ui-9e8e339648901899827a58e5bf919f7dda03b88e.tar.gz jquery-ui-9e8e339648901899827a58e5bf919f7dda03b88e.zip |
Unit tests: Disable stale interaction tests only on testswarm, but allow them to run locally
Diffstat (limited to 'tests/unit/selectable/selectable.html')
-rw-r--r-- | tests/unit/selectable/selectable.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/unit/selectable/selectable.html b/tests/unit/selectable/selectable.html index e71d20e22..278d4dde3 100644 --- a/tests/unit/selectable/selectable.html +++ b/tests/unit/selectable/selectable.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="selectable_core.js"></script> <script type="text/javascript" src="selectable_defaults.js"></script> <script type="text/javascript" src="selectable_events.js"></script> <script type="text/javascript" src="selectable_methods.js"></script> <script type="text/javascript" src="selectable_options.js"></script> <script type="text/javascript" src="selectable_tickets.js"></script> - --> - <script type="text/javascript">test("selectable", function() { ok(true, "disabled selectable 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("selectable", function() { ok(true, "disabled selectable testsuite"); }); + } + </script> + <script type="text/javascript" src="../testsuite.js"></script> </head> <body> |