| Index: LayoutTests/resources/js-test.js
|
| diff --git a/LayoutTests/resources/js-test.js b/LayoutTests/resources/js-test.js
|
| index 98e6f1bf6cb237ca7b57b778ad343a4dce57afb9..052cd33642f1fe229af06ec9a9da4e88d8a26ca2 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) {
|
|
|