Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: testing/resources/javascript/consts.in

Issue 1761923002: Add JS tests for global const equality. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}
« no previous file with comments | « no previous file | testing/resources/javascript/consts_expected.txt » ('j') | testing/resources/javascript/consts_expected.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698