Skip to content
Permalink
Browse files

Tests: Removed old code that kept bad test suites out of TestSwarm.

  • Loading branch information...
scottgonzalez committed Oct 26, 2012
1 parent 4211866 commit d68ef5e4e1328eee4f275a5651d6fd2e9bd1cf21
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>" );
})();

0 comments on commit d68ef5e

Please sign in to comment.
You can’t perform that action at this time.