]> source.dussan.org Git - jquery-ui.git/commitdiff
Unit tests: Try to disable tests only for testswarm; if this works, I'll modify the...
authorjzaefferer <joern.zaefferer@gmail.com>
Wed, 14 Apr 2010 16:53:01 +0000 (18:53 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Wed, 14 Apr 2010 16:53:01 +0000 (18:53 +0200)
tests/unit/draggable/draggable.html

index 050d3770464b98c3d1ec6013004d27f46d74ebf0..2be472a50d408c51c450b68d42a10b6971c899ae 100644 (file)
        <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>