]> source.dussan.org Git - jquery-ui.git/commitdiff
Unit tests: Disable stale widget tests on testswarm
authorjzaefferer <joern.zaefferer@gmail.com>
Wed, 14 Apr 2010 18:19:20 +0000 (20:19 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Wed, 14 Apr 2010 18:19:20 +0000 (20:19 +0200)
tests/unit/core/core.html
tests/unit/datepicker/datepicker.html
tests/unit/dialog/dialog.html
tests/unit/tabs/tabs.html

index 843344ca7ed2ba5532fa19da2da0e8c007adc923..468c962e5eec4b46110850aaf90d427881bb881f 100644 (file)
        <link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>
        <script type="text/javascript" src="../../../external/qunit.js"></script>
        <script type="text/javascript" src="../../jquery.simulate.js"></script>
-       <script type="text/javascript" src="../testsuite.js"></script>
        
        <script type="text/javascript" src="core.js"></script>
        <script type="text/javascript" src="selector.js"></script>
        
+       <script type="text/javascript">
+       // 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("core", function() { ok(true, "disabled core testsuite"); });
+       }
+       </script>
+       <script type="text/javascript" src="../testsuite.js"></script>
+       
        <style  type="text/css">
                .zindex {z-index: 100}
                .absolute {position: absolute}
index e64bc74c0b042ff8f81dd688b419210174fb2786..9354e7b99c259e7a4f3183c0904cd4530e4c80a1 100644 (file)
@@ -16,7 +16,6 @@
        <link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>
        <script type="text/javascript" src="../../../external/qunit.js"></script>
        <script type="text/javascript" src="../../jquery.simulate.js"></script>
-       <script type="text/javascript" src="../testsuite.js"></script>
        
        <script type="text/javascript" src="datepicker_core.js"></script>
        <script type="text/javascript" src="datepicker_defaults.js"></script>
        <script type="text/javascript" src="datepicker_methods.js"></script>
        <script type="text/javascript" src="datepicker_options.js"></script>
        <script type="text/javascript" src="datepicker_tickets.js"></script>
+       
+       <script type="text/javascript">
+       // 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 type="text/javascript" src="../testsuite.js"></script>
 </head>
 <body>
 
index 03ce280e3f96c9d42e1db1e812a3bbcea5ac5129..97a5d44cd012120f12f04b758efc7f5b0980c51f 100644 (file)
@@ -19,7 +19,6 @@
        <link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>
        <script type="text/javascript" src="../../../external/qunit.js"></script>
        <script type="text/javascript" src="../../jquery.simulate.js"></script>
-       <script type="text/javascript" src="../testsuite.js"></script>
        
        <script type="text/javascript" src="dialog_core.js"></script>
        <script type="text/javascript" src="dialog_defaults.js"></script>
        <script type="text/javascript" src="dialog_methods.js"></script>
        <script type="text/javascript" src="dialog_options.js"></script>
        <script type="text/javascript" src="dialog_tickets.js"></script>
+       
+       <script type="text/javascript">
+       // 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("dialog", function() { ok(true, "disabled dialog testsuite"); });
+       }
+       </script>
+       <script type="text/javascript" src="../testsuite.js"></script>
 </head>
 <body>
 
index 1e050af97ed2609869439693b1d39b37bab0b9b2..269f47ed5b6d307f35984d6a7e6ac61ba82dffa7 100644 (file)
@@ -15,7 +15,6 @@
        <link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>
        <script type="text/javascript" src="../../../external/qunit.js"></script>
        <script type="text/javascript" src="../../jquery.simulate.js"></script>
-       <script type="text/javascript" src="../testsuite.js"></script>
 
        <script type="text/javascript" src="tabs_core.js"></script>
        <script type="text/javascript" src="tabs_defaults.js"></script>
        <script type="text/javascript" src="tabs_methods.js"></script>
        <script type="text/javascript" src="tabs_options.js"></script>
        <script type="text/javascript" src="tabs_tickets.js"></script>
+       
+       <script type="text/javascript">
+       // 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("tabs", function() { ok(true, "disabled tabs testsuite"); });
+       }
+       </script>
+       <script type="text/javascript" src="../testsuite.js"></script>
 </head>
 <body>