]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Removed old code that kept bad test suites out of TestSwarm.
authorScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 17:47:24 +0000 (13:47 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 17:47:34 +0000 (13:47 -0400)
tests/unit/datepicker/datepicker.html
tests/unit/dialog/dialog.html
tests/unit/draggable/draggable.html
tests/unit/droppable/droppable.html
tests/unit/resizable/resizable.html
tests/unit/selectable/selectable.html
tests/unit/slider/slider.html
tests/unit/sortable/sortable.html
tests/unit/swarminject.js

index bfff32d32d4382e93f535393427ae5aaf942156a..9530600f146bc86274a11d4547405a3411a4bb03 100644 (file)
        <script src="datepicker_options.js"></script>
        <script src="datepicker_tickets.js"></script>
 
-       <script>
-       // 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("datepicker", function() { ok(true, "disabled datepicker testsuite"); });
-       }
-       </script>
        <script src="../swarminject.js"></script>
 </head>
 <body>
index c00c52fab4920ee9e66cbc4661bcfde76f2678db..6722f1bb0ee93a656309182d05768b5f474f64ad 100644 (file)
        <script src="dialog_options.js"></script>
        <script src="dialog_tickets.js"></script>
 
-       <script>
-       // disable this testsuite for testswarm only - until we fix it from freezing IE6
-       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("dialog", function() { ok(true, "disabled dialog testsuite"); });
-       }
-       </script>
        <script src="../swarminject.js"></script>
 </head>
 <body>
index 09bc191c9f7058b96281e8414e4e6f8e5878ae17..cd8ad647781283555d764b34193c561aa610b850 100644 (file)
        <script src="draggable_methods.js"></script>
        <script src="draggable_options.js"></script>
 
-       <script>
-       // 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 src="../swarminject.js"></script>
 </head>
 <body>
index 49ebf6beb4b589447c399823c763d8f775323268..cd29b1cdf36170dcd114069a0c193848c6f17604 100644 (file)
        <script src="droppable_methods.js"></script>
        <script src="droppable_options.js"></script>
 
-       <script>
-       // 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 src="../swarminject.js"></script>
 </head>
 <body>
index 558574c5ffd1a4c19c7c6021827441663eafc4e9..50099efeeab312432dc6dc1a7bd0f0be85a57e12 100644 (file)
        <script src="resizable_methods.js"></script>
        <script src="resizable_options.js"></script>
 
-       <script>
-       // 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 src="../swarminject.js"></script>
 </head>
 <body>
index 7b0ca6ffe7c97ef9d274e9028cb565284b4785ab..18ffc6ef7788656a72a7df7e151a1197081ec95d 100644 (file)
        <script src="selectable_methods.js"></script>
        <script src="selectable_options.js"></script>
 
-       <script>
-       // 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 src="../swarminject.js"></script>
 </head>
 <body>
index 3aec78b4b907c909a8572b49ba309a17281d0b44..98adfa3aea6e4217b6922202a8f0c317e6014c23 100644 (file)
        <script src="slider_methods.js"></script>
        <script src="slider_options.js"></script>
 
-       <script>
-       // 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 src="../swarminject.js"></script>
 </head>
 <body>
index c84c62197925300c80eb645f461e8841c622bc00..2c20da67738c0dee58cf0f0d1fe87ec11afc6677 100644 (file)
        <script src="sortable_options.js"></script>
        <script src="sortable_tickets.js"></script>
 
-       <script>
-       // 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 src="../swarminject.js"></script>
 </head>
 <body>
index 78d37ef4690c45d92f0900fd2cfda009e5ba3a18..ebd3ccfac55000b7c445c012564b81e3fdf5d47f 100644 (file)
@@ -1,9 +1,10 @@
 // load testswarm agent
 (function() {
-    var url = window.location.search;
+       var url = window.location.search;
        url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
        if ( !url || url.indexOf("http") !== 0 ) {
                return;
        }
-    document.write( "<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date()).getTime() + "'></scr" + "ipt>" );
+       document.write( "<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" +
+               (new Date()).getTime() + "'></scr" + "ipt>" );
 })();