Chromium Code Reviews| Index: testing/resources/javascript/consts.in |
| diff --git a/testing/resources/javascript/consts.in b/testing/resources/javascript/consts.in |
| index a717ec873ac1f7d66b22ebe890c42770e379cc02..d8dbff14de0cc9f8b004c75d7a0a63507e31fe20 100644 |
| --- a/testing/resources/javascript/consts.in |
| +++ b/testing/resources/javascript/consts.in |
| @@ -66,6 +66,16 @@ function doGlobalArrayTest(props) { |
| } |
| } |
| +function doEqualityTests() { |
| + app.alert("String equality test (==): " + |
| + (IDS_GREATER_THAN == IDS_GREATER_THAN)); |
| + app.alert("Sting equality test (===): " + |
|
dsinclair
2016/03/03 18:12:50
nit: String
Tom Sepez
2016/03/03 18:15:33
Done.
|
| + (IDS_GREATER_THAN === IDS_GREATER_THAN)); |
| + app.alert("Array equality test (==): " + |
| + (RE_PHONE_COMMIT == RE_PHONE_COMMIT)); |
| + app.alert("Array equality test (===): " + |
| + (RE_PHONE_COMMIT === RE_PHONE_COMMIT)); |
| +} |
| try { |
| doTest("border", ["s", "b", "d", "i", "u", "nonesuch"]); |
| @@ -112,6 +122,7 @@ try { |
| "RE_SSN_COMMIT" |
| ]); |
| + doEqualityTests(); |
| } catch (e) { |
| app.alert("ERROR: " + e.toString()); |
| } |