aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-14 19:02:03 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-14 19:02:03 +0200
commit9e8e339648901899827a58e5bf919f7dda03b88e (patch)
tree1b80576996a03b3f883e9f66c49682eb727bde7a /tests/unit/resizable
parent65c225533b9e9f9b609617efab7211bf0e536a6a (diff)
downloadjquery-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/resizable')
-rw-r--r--tests/unit/resizable/resizable.html16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/unit/resizable/resizable.html b/tests/unit/resizable/resizable.html
index 08c4c8798..0f4f91aae 100644
--- a/tests/unit/resizable/resizable.html
+++ b/tests/unit/resizable/resizable.html
@@ -15,17 +15,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="resizable_core.js"></script>
<script type="text/javascript" src="resizable_defaults.js"></script>
<script type="text/javascript" src="resizable_events.js"></script>
<script type="text/javascript" src="resizable_methods.js"></script>
<script type="text/javascript" src="resizable_options.js"></script>
<script type="text/javascript" src="resizable_tickets.js"></script>
- -->
- <script type="text/javascript">test("resizable", function() { ok(true, "disabled resizable 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("resizable", function() { ok(true, "disabled resizable testsuite"); });
+ }
+ </script>
+ <script type="text/javascript" src="../testsuite.js"></script>
</head>
<body>