aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-26 13:47:24 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-26 13:47:34 -0400
commitd68ef5e4e1328eee4f275a5651d6fd2e9bd1cf21 (patch)
treef72f13bb5220c56d656c6761c0aed478ebe949fd /tests/unit
parent42118668131e5f6e1dc15427efa69a1fca30a7a1 (diff)
downloadjquery-ui-d68ef5e4e1328eee4f275a5651d6fd2e9bd1cf21.tar.gz
jquery-ui-d68ef5e4e1328eee4f275a5651d6fd2e9bd1cf21.zip
Tests: Removed old code that kept bad test suites out of TestSwarm.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/datepicker/datepicker.html10
-rw-r--r--tests/unit/dialog/dialog.html10
-rw-r--r--tests/unit/draggable/draggable.html10
-rw-r--r--tests/unit/droppable/droppable.html10
-rw-r--r--tests/unit/resizable/resizable.html10
-rw-r--r--tests/unit/selectable/selectable.html10
-rw-r--r--tests/unit/slider/slider.html10
-rw-r--r--tests/unit/sortable/sortable.html10
-rw-r--r--tests/unit/swarminject.js5
9 files changed, 3 insertions, 82 deletions
diff --git a/tests/unit/datepicker/datepicker.html b/tests/unit/datepicker/datepicker.html
index bfff32d32..9530600f1 100644
--- a/tests/unit/datepicker/datepicker.html
+++ b/tests/unit/datepicker/datepicker.html
@@ -29,16 +29,6 @@
<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>
diff --git a/tests/unit/dialog/dialog.html b/tests/unit/dialog/dialog.html
index c00c52fab..6722f1bb0 100644
--- a/tests/unit/dialog/dialog.html
+++ b/tests/unit/dialog/dialog.html
@@ -31,16 +31,6 @@
<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>
diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html
index 09bc191c9..cd8ad6477 100644
--- a/tests/unit/draggable/draggable.html
+++ b/tests/unit/draggable/draggable.html
@@ -27,16 +27,6 @@
<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>
diff --git a/tests/unit/droppable/droppable.html b/tests/unit/droppable/droppable.html
index 49ebf6beb..cd29b1cdf 100644
--- a/tests/unit/droppable/droppable.html
+++ b/tests/unit/droppable/droppable.html
@@ -28,16 +28,6 @@
<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>
diff --git a/tests/unit/resizable/resizable.html b/tests/unit/resizable/resizable.html
index 558574c5f..50099efee 100644
--- a/tests/unit/resizable/resizable.html
+++ b/tests/unit/resizable/resizable.html
@@ -27,16 +27,6 @@
<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>
diff --git a/tests/unit/selectable/selectable.html b/tests/unit/selectable/selectable.html
index 7b0ca6ffe..18ffc6ef7 100644
--- a/tests/unit/selectable/selectable.html
+++ b/tests/unit/selectable/selectable.html
@@ -27,16 +27,6 @@
<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>
diff --git a/tests/unit/slider/slider.html b/tests/unit/slider/slider.html
index 3aec78b4b..98adfa3ae 100644
--- a/tests/unit/slider/slider.html
+++ b/tests/unit/slider/slider.html
@@ -27,16 +27,6 @@
<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>
diff --git a/tests/unit/sortable/sortable.html b/tests/unit/sortable/sortable.html
index c84c62197..2c20da677 100644
--- a/tests/unit/sortable/sortable.html
+++ b/tests/unit/sortable/sortable.html
@@ -28,16 +28,6 @@
<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>
diff --git a/tests/unit/swarminject.js b/tests/unit/swarminject.js
index 78d37ef46..ebd3ccfac 100644
--- a/tests/unit/swarminject.js
+++ b/tests/unit/swarminject.js
@@ -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>" );
})();