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

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: Typos. 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
« no previous file with comments | « no previous file | testing/resources/javascript/consts_expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/javascript/consts.in
diff --git a/testing/resources/javascript/consts.in b/testing/resources/javascript/consts.in
index a717ec873ac1f7d66b22ebe890c42770e379cc02..6fb82158e3daf4d011e4cdcaca075e6882cd119f 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("String equality test (===): " +
+ (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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698