]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider unit tests: Disabled stale tests on Testswarm
authorjzaefferer <joern.zaefferer@gmail.com>
Wed, 28 Apr 2010 16:55:29 +0000 (18:55 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Wed, 28 Apr 2010 16:55:29 +0000 (18:55 +0200)
tests/unit/slider/slider.html

index 5b1506de556c495ba5382fa971e2fb9cee83c284..1ba5f76af22c9efc45f9f36667f632c0f0ce50c1 100644 (file)
@@ -15,7 +15,6 @@
        <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="slider_core.js"></script>
        <script type="text/javascript" src="slider_defaults.js"></script>
        <script type="text/javascript" src="slider_methods.js"></script>
        <script type="text/javascript" src="slider_options.js"></script>
        <script type="text/javascript" src="slider_tickets.js"></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("slider", function() { ok(true, "disabled slider testsuite"); });
+       }
+       </script>
+       <script type="text/javascript" src="../testsuite.js"></script>
 </head>
 <body>