]> source.dussan.org Git - jquery-ui.git/commitdiff
datepicker: renabling tests, with timeouts inbetween each test, hopefully avoids...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 19 Sep 2009 13:36:34 +0000 (13:36 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 19 Sep 2009 13:36:34 +0000 (13:36 +0000)
tests/unit/datepicker/datepicker.html
tests/unit/datepicker/datepicker_core.js
tests/unit/datepicker/datepicker_events.js
tests/unit/datepicker/datepicker_methods.js
tests/unit/datepicker/datepicker_options.js

index 5ba5f046d463798363183234907f7e3a9e8b104a..05b266438c6ed4e453741f9ee6d063735c7f893d 100644 (file)
        <script type="text/javascript" src="../../jquery.simulate.js"></script>
        <script type="text/javascript" src="../testsuite.js"></script>
 
-       <script>
-               test("datepicker", function() {
-                       ok(false, "disabled for now to avoid crashing testswarm clients; enable for local testing only until performance issues are solved");
-               });
-       </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_events.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>
-       -->
 </head>
 <body>
 
index 1344806932c9eb9508688cfdb1c5fba5ba3ff3ac..9ff25b3d6caf305f37c2da41faae617418bf75a8 100644 (file)
@@ -40,7 +40,12 @@ var PROP_NAME = 'datepicker';
 
 (function($) {
 
-module("datepicker: core");
+module("datepicker: core", {
+       teardown: function() {
+               stop();
+               setTimeout(start, 13);
+       }
+});
 
 test('baseStructure', function() {
        var inp = init('#inp');
index 84ca2f98ed3e3401d59bc7518b34a634aaf801b1..0c207097ad2e349883d896d9aa4f2eff9f5279a4 100644 (file)
@@ -3,7 +3,12 @@
  */
 (function($) {
 
-module("datepicker: events");
+module("datepicker: events", {
+       teardown: function() {
+               stop();
+               setTimeout(start, 13);
+       }
+});
 
 var selectedThis = null;
 var selectedDate = null;
index 8d078f099aa91e02718d222185950dd325755383..c102f7ac30a3fec3e40987897933871ddcbe83c6 100644 (file)
@@ -3,7 +3,12 @@
  */
 (function($) {
 
-module("datepicker: methods");
+module("datepicker: methods", {
+       teardown: function() {
+               stop();
+               setTimeout(start, 13);
+       }
+});
 
 test('destroy', function() {
        var inp = init('#inp');
index c3ffb1d11d35f9469db36fc101367b6a67831c92..b66644f0ff639917dc47cbd8db5b276530172ae8 100644 (file)
@@ -4,7 +4,12 @@
 
 (function($) {
 
-module("datepicker: options");
+module("datepicker: options", {
+       teardown: function() {
+               stop();
+               setTimeout(start, 13);
+       }
+});
 
 test('setDefaults', function() {
        var inp = init('#inp');