Index: LayoutTests/resources/js-test.js |
diff --git a/LayoutTests/resources/js-test.js b/LayoutTests/resources/js-test.js |
index 791b728108f45d6ac91bd9866ee353671718505a..5dc6f3c08cc62a4d73f8bfa81eeca28dea2d4fad 100644 |
--- a/LayoutTests/resources/js-test.js |
+++ b/LayoutTests/resources/js-test.js |
@@ -413,6 +413,14 @@ function shouldBeEqualToString(a, b) |
shouldBe(a, unevaledString); |
} |
+function shouldBeEqualToNumber(a, b) |
+{ |
+ if (typeof a !== "string" || typeof b !== "number") |
+ debug("WARN: shouldBeEqualToNumber() expects a string and a number arguments"); |
+ var unevaledString = JSON.stringify(b); |
+ shouldBe(a, unevaledString); |
+} |
+ |
function shouldBeEmptyString(a) { shouldBeEqualToString(a, ""); } |
function shouldEvaluateTo(actual, expected) { |