]> source.dussan.org Git - jquery-ui.git/commitdiff
Unit tests: Disable stale interaction tests only on testswarm, but allow them to...
authorjzaefferer <joern.zaefferer@gmail.com>
Wed, 14 Apr 2010 17:02:03 +0000 (19:02 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Wed, 14 Apr 2010 17:02:03 +0000 (19:02 +0200)
tests/unit/droppable/droppable.html
tests/unit/resizable/resizable.html
tests/unit/selectable/selectable.html
tests/unit/sortable/sortable.html

index bc9a9d416aafb7e37f27743d78d9f54aee1b4528..c15992bcdbc0858f369ecfe8f4c94fcc829c6e16 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="droppable_core.js"></script>
        <script type="text/javascript" src="droppable_defaults.js"></script>
        <script type="text/javascript" src="droppable_events.js"></script>
        <script type="text/javascript" src="droppable_methods.js"></script>
        <script type="text/javascript" src="droppable_options.js"></script>
        <script type="text/javascript" src="droppable_tickets.js"></script>
-       -->
-       <script type="text/javascript">test("droppable", function() { ok(true, "disabled droppable 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("droppable", function() { ok(true, "disabled droppable testsuite"); });
+       }
+       </script>
+       <script type="text/javascript" src="../testsuite.js"></script>
 </head>
 <body>
 
index 08c4c8798455c1f33636ff6d5d5a6099766141ad..0f4f91aaede3ee23f260830adc9bc8fb92d05e30 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="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>
 
index e71d20e223986606c8881b7286f8320043245f67..278d4dde371d1a3539b2228f169332fb8ec9a7c1 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="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>
 
index f956d6df0c7c20ea5a386abf22d214c44f43fa66..ad5cdca6d3d16e3f4f7a19f10f5aeac887df2624 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="sortable_core.js"></script>
        <script type="text/javascript" src="sortable_defaults.js"></script>
        <script type="text/javascript" src="sortable_events.js"></script>
        <script type="text/javascript" src="sortable_methods.js"></script>
        <script type="text/javascript" src="sortable_options.js"></script>
        <script type="text/javascript" src="sortable_tickets.js"></script>
-       -->
-       <script type="text/javascript">test("sortable", function() { ok(true, "disabled sortable 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("sortable", function() { ok(true, "disabled sortable testsuite"); });
+       }
+       </script>
+       <script type="text/javascript" src="../testsuite.js"></script>
 </head>
 <body>