Index: LayoutTests/fast/forms/date/input-valueasdate-date.html |
diff --git a/LayoutTests/fast/forms/date/input-valueasdate-date.html b/LayoutTests/fast/forms/date/input-valueasdate-date.html |
index cdb84140cd4c10f4660f69d791e3d833941c4c0c..5faea360c1e3795633fa7632dd52d7d7928fdee9 100644 |
--- a/LayoutTests/fast/forms/date/input-valueasdate-date.html |
+++ b/LayoutTests/fast/forms/date/input-valueasdate-date.html |
@@ -31,22 +31,22 @@ shouldBe('valueAsDateFor("1969-12-31").getTime()', 'Date.UTC(1969, 11, 31)'); |
shouldBe('valueAsDateFor("1970-01-01").getTime()', 'Date.UTC(1970, 0, 1)'); |
shouldBe('valueAsDateFor("2009-12-22").getTime()', 'Date.UTC(2009, 11, 22)'); |
-shouldBe('setValueAsDateAndGetValue(1969, 11, 1)', '"1969-12-01"'); |
-shouldBe('setValueAsDateAndGetValue(1970, 0, 1)', '"1970-01-01"'); |
-shouldBe('setValueAsDateAndGetValue(2009, 11, 31)', '"2009-12-31"'); |
-shouldBe('setValueAsDateAndGetValue(10000, 0, 1)', '"10000-01-01"'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(1969, 11, 1)', '1969-12-01'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(1970, 0, 1)', '1970-01-01'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(2009, 11, 31)', '2009-12-31'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(10000, 0, 1)', '10000-01-01'); |
-shouldBe('setValueAsDateAndGetValue(-1, 0, 1)', '""'); |
-shouldBe('setValueAsDateAndGetValue(0, 11, 31)', '""'); |
-shouldBe('setValueAsDateAndGetValue(1, 0, 1)', '"0001-01-01"'); |
-shouldBe('setValueAsDateAndGetValue(1582, 9, 15)', '"1582-10-15"'); |
-shouldBe('setValueAsDateAndGetValue(1582, 9, 31)', '"1582-10-31"'); |
-shouldBe('setValueAsDateAndGetValue(275760, 8, 13)', '"275760-09-13"'); |
-shouldBe('setValueAsDateAndGetValue(275760, 8, 14)', '""'); // Date of JavaScript can't represent this. |
+shouldBeEqualToString('setValueAsDateAndGetValue(-1, 0, 1)', ''); |
+shouldBeEqualToString('setValueAsDateAndGetValue(0, 11, 31)', ''); |
+shouldBeEqualToString('setValueAsDateAndGetValue(1, 0, 1)', '0001-01-01'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(1582, 9, 15)', '1582-10-15'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(1582, 9, 31)', '1582-10-31'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(275760, 8, 13)', '275760-09-13'); |
+shouldBeEqualToString('setValueAsDateAndGetValue(275760, 8, 14)', ''); // Date of JavaScript can't represent this. |
debug('Invalid objects:'); |
-shouldBe('input.value = "2010-01-01"; input.valueAsDate = document; input.value', '""'); |
-shouldBe('input.value = "2010-01-01"; input.valueAsDate = null; input.value', '""'); |
+shouldBeEqualToString('input.value = "2010-01-01"; input.valueAsDate = document; input.value', ''); |
+shouldBeEqualToString('input.value = "2010-01-01"; input.valueAsDate = null; input.value', ''); |
</script> |
</body> |
</html> |