From 455ebf4b99f33f20a03572d4923accc3ed95ebd8 Mon Sep 17 00:00:00 2001 From: "enndeakin%sympatico.ca" Date: Wed, 25 Jul 2007 18:07:13 +0000 Subject: [PATCH] Bug 386772, use right format for date values, and add datepicker/timepicker tests,r=gavin --- toolkit/content/tests/widgets/Makefile.in | 2 + .../content/tests/widgets/test_datepicker.xul | 309 ++++++++++++++++++ .../content/tests/widgets/test_timepicker.xul | 206 ++++++++++++ toolkit/content/widgets/datetimepicker.xml | 7 +- 4 files changed, 521 insertions(+), 3 deletions(-) create mode 100644 toolkit/content/tests/widgets/test_datepicker.xul create mode 100644 toolkit/content/tests/widgets/test_timepicker.xul diff --git a/toolkit/content/tests/widgets/Makefile.in b/toolkit/content/tests/widgets/Makefile.in index a7c2775c0f5..0e580995b7e 100644 --- a/toolkit/content/tests/widgets/Makefile.in +++ b/toolkit/content/tests/widgets/Makefile.in @@ -52,6 +52,8 @@ _TEST_FILES = test_bug360220.xul \ test_popup_coords.xul \ test_popup_recreate.xul \ test_progressmeter.xul \ + test_datepicker.xul \ + test_timepicker.xul \ $(NULL) libs:: $(_TEST_FILES) diff --git a/toolkit/content/tests/widgets/test_datepicker.xul b/toolkit/content/tests/widgets/test_datepicker.xul new file mode 100644 index 00000000000..902b37f423b --- /dev/null +++ b/toolkit/content/tests/widgets/test_datepicker.xul @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + +

+ +
+
+ + + + +
diff --git a/toolkit/content/tests/widgets/test_timepicker.xul b/toolkit/content/tests/widgets/test_timepicker.xul new file mode 100644 index 00000000000..f9dfa9918da --- /dev/null +++ b/toolkit/content/tests/widgets/test_timepicker.xul @@ -0,0 +1,206 @@ + + + + + + + + + + + + +

+ +
+
+ + + + +
diff --git a/toolkit/content/widgets/datetimepicker.xml b/toolkit/content/widgets/datetimepicker.xml index 02f2f3dc8bd..117697541fa 100644 --- a/toolkit/content/widgets/datetimepicker.xml +++ b/toolkit/content/widgets/datetimepicker.xml @@ -593,16 +593,17 @@ var date = this._dateValue.getDate(); if (date < 10) date = "0" + date; - return this._dateValue.getFullYear() + "/" + month + "/" + date; + return this._dateValue.getFullYear() + "-" + month + "-" + date; ]]>