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

This commit is contained in:
Scott González 2012-10-26 13:47:24 -04:00
parent 4211866813
commit d68ef5e4e1
9 changed files with 3 additions and 82 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View 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>" );
})();