Skip to content

Commit d68ef5e

Browse files
committed
Tests: Removed old code that kept bad test suites out of TestSwarm.
1 parent 4211866 commit d68ef5e

File tree

9 files changed

+3
-82
lines changed

9 files changed

+3
-82
lines changed

tests/unit/datepicker/datepicker.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@
2929
<script src="datepicker_options.js"></script>
3030
<script src="datepicker_tickets.js"></script>
3131

32-
<script>
33-
// disable this stale testsuite for testswarm only
34-
var url = window.location.search;
35-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
36-
if ( url && url.indexOf("http") == 0 ) {
37-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
38-
QUnit.init();
39-
test("datepicker", function() { ok(true, "disabled datepicker testsuite"); });
40-
}
41-
</script>
4232
<script src="../swarminject.js"></script>
4333
</head>
4434
<body>

tests/unit/dialog/dialog.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@
3131
<script src="dialog_options.js"></script>
3232
<script src="dialog_tickets.js"></script>
3333

34-
<script>
35-
// disable this testsuite for testswarm only - until we fix it from freezing IE6
36-
var url = window.location.search;
37-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
38-
if ( url && url.indexOf("http") == 0 ) {
39-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
40-
QUnit.init();
41-
test("dialog", function() { ok(true, "disabled dialog testsuite"); });
42-
}
43-
</script>
4434
<script src="../swarminject.js"></script>
4535
</head>
4636
<body>

tests/unit/draggable/draggable.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@
2727
<script src="draggable_methods.js"></script>
2828
<script src="draggable_options.js"></script>
2929

30-
<script>
31-
// disable this stale testsuite for testswarm only
32-
var url = window.location.search;
33-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
34-
if ( url && url.indexOf("http") == 0 ) {
35-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
36-
QUnit.init();
37-
test("draggable", function() { ok(true, "disabled draggable testsuite"); });
38-
}
39-
</script>
4030
<script src="../swarminject.js"></script>
4131
</head>
4232
<body>

tests/unit/droppable/droppable.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@
2828
<script src="droppable_methods.js"></script>
2929
<script src="droppable_options.js"></script>
3030

31-
<script>
32-
// disable this stale testsuite for testswarm only
33-
var url = window.location.search;
34-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
35-
if ( url && url.indexOf("http") == 0 ) {
36-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
37-
QUnit.init();
38-
test("droppable", function() { ok(true, "disabled droppable testsuite"); });
39-
}
40-
</script>
4131
<script src="../swarminject.js"></script>
4232
</head>
4333
<body>

tests/unit/resizable/resizable.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@
2727
<script src="resizable_methods.js"></script>
2828
<script src="resizable_options.js"></script>
2929

30-
<script>
31-
// disable this stale testsuite for testswarm only
32-
var url = window.location.search;
33-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
34-
if ( url && url.indexOf("http") == 0 ) {
35-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
36-
QUnit.init();
37-
test("resizable", function() { ok(true, "disabled resizable testsuite"); });
38-
}
39-
</script>
4030
<script src="../swarminject.js"></script>
4131
</head>
4232
<body>

tests/unit/selectable/selectable.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@
2727
<script src="selectable_methods.js"></script>
2828
<script src="selectable_options.js"></script>
2929

30-
<script>
31-
// disable this stale testsuite for testswarm only
32-
var url = window.location.search;
33-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
34-
if ( url && url.indexOf("http") == 0 ) {
35-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
36-
QUnit.init();
37-
test("selectable", function() { ok(true, "disabled selectable testsuite"); });
38-
}
39-
</script>
4030
<script src="../swarminject.js"></script>
4131
</head>
4232
<body>

tests/unit/slider/slider.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@
2727
<script src="slider_methods.js"></script>
2828
<script src="slider_options.js"></script>
2929

30-
<script>
31-
// disable this stale testsuite for testswarm only
32-
var url = window.location.search;
33-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
34-
if ( url && url.indexOf("http") == 0 ) {
35-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
36-
QUnit.init();
37-
test("slider", function() { ok(true, "disabled slider testsuite"); });
38-
}
39-
</script>
4030
<script src="../swarminject.js"></script>
4131
</head>
4232
<body>

tests/unit/sortable/sortable.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@
2828
<script src="sortable_options.js"></script>
2929
<script src="sortable_tickets.js"></script>
3030

31-
<script>
32-
// disable this stale testsuite for testswarm only
33-
var url = window.location.search;
34-
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
35-
if ( url && url.indexOf("http") == 0 ) {
36-
// reset config to kill previous tests; make sure testsuite.js is loaded afterwards to init the testswarm script
37-
QUnit.init();
38-
test("sortable", function() { ok(true, "disabled sortable testsuite"); });
39-
}
40-
</script>
4131
<script src="../swarminject.js"></script>
4232
</head>
4333
<body>

tests/unit/swarminject.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// load testswarm agent
22
(function() {
3-
var url = window.location.search;
3+
var url = window.location.search;
44
url = decodeURIComponent( url.slice( url.indexOf("swarmURL=") + 9 ) );
55
if ( !url || url.indexOf("http") !== 0 ) {
66
return;
77
}
8-
document.write( "<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" + (new Date()).getTime() + "'></scr" + "ipt>" );
8+
document.write( "<scr" + "ipt src='http://swarm.jquery.org/js/inject.js?" +
9+
(new Date()).getTime() + "'></scr" + "ipt>" );
910
})();

0 commit comments

Comments
 (0)