]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker Tests: Prepare for widget-ization tests.
authorMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 22:37:26 +0000 (17:37 -0500)
committerMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 22:37:26 +0000 (17:37 -0500)
tests/unit/datepicker/datepicker.html
tests/unit/datepicker/datepicker_common.js [new file with mode: 0644]
tests/unit/datepicker/datepicker_defaults.js [deleted file]

index 390d052c3af0dc7b3af4ff3259b80da9f0c900ac..8ef2de5a4c69c1c65d3ad60d209a4b26a703ace4 100644 (file)
@@ -22,8 +22,8 @@
        });
        </script>
 
+       <script src="datepicker_common.js"></script>
        <script src="datepicker_core.js"></script>
-       <script src="datepicker_defaults.js"></script>
        <script src="datepicker_events.js"></script>
        <script src="datepicker_methods.js"></script>
        <script src="datepicker_options.js"></script>
diff --git a/tests/unit/datepicker/datepicker_common.js b/tests/unit/datepicker/datepicker_common.js
new file mode 100644 (file)
index 0000000..1eecc85
--- /dev/null
@@ -0,0 +1,7 @@
+/*
+TestHelpers.commonWidgetTests( "datepicker", {
+       defaults: {
+               disabled: false
+       }
+});
+*/
diff --git a/tests/unit/datepicker/datepicker_defaults.js b/tests/unit/datepicker/datepicker_defaults.js
deleted file mode 100644 (file)
index 1e7d908..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * datepicker_defaults.js
- */
-
-/*
-var datepicker_defaults = {
-       disabled: false
-};
-
-TestHelpers.commonWidgetTests('datepicker', { defaults: datepicker_defaults });
-*/