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

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

Issue 1645413002: Fix botched "CC:" parameter passing in JS_DocmailForm(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rename back to "params". Created 4 years, 11 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 | « samples/pdfium_test.cc ('k') | testing/resources/javascript/app_mailmsg_expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/javascript/app_mailmsg.in
diff --git a/testing/resources/javascript/app_alert.in b/testing/resources/javascript/app_mailmsg.in
similarity index 54%
copy from testing/resources/javascript/app_alert.in
copy to testing/resources/javascript/app_mailmsg.in
index 75aecc9075397775c30997f9a357ca9166971ef2..990709be47a74e2d335277a971b0bb03364498fb 100644
--- a/testing/resources/javascript/app_alert.in
+++ b/testing/resources/javascript/app_mailmsg.in
@@ -34,30 +34,31 @@ endobj
{{object 11 0}} <<
>>
stream
-app.alert("This test passes if alert() logs output under the test utility.");
-app.alert("message", 1, 2, "title");
-app.alert({"cMsg": "message", "cTitle": "title"});
-app.alert({"cMsg": "message", "cTitle": "title", "nIcon": 3, "nType": 4});
-app.alert(undefined);
-app.alert(null);
-app.alert(true);
-app.alert(false);
-app.alert(42);
-app.alert([1, 2, 3]);
-app.alert([1, 2, {"color": "red"}]);
-app.alert({"color": "red"}, 5, 6, "title");
+app.alert("This test passes if mailMsg() logs output under the test utility.");
+app.mailMsg(true);
+app.mailMsg(false, "user@example.com");
+app.mailMsg(false, "user@example.com", "cc@example.com",
+ "bcc@example.com", "subject", "body");
+app.mailMsg({"bUI": true});
+app.mailMsg({"bUI": false, "cTo": "user@example.com"});
+app.mailMsg({"bUI": false,
+ "cTo": "user@example.com",
+ "cCc": "cc@example.com",
+ "cBcc": "bcc@example.com",
+ "cSubject": "subject",
+ "cMsg": "body"});
try {
- app.alert();
+ app.mailMsg();
} catch (e) {
app.alert("Caught expected error " + e);
}
try {
- app.alert({});
+ app.mailMsg(false);
} catch (e) {
app.alert("Caught expected error " + e);
}
try {
- app.alert({"color": "red", "size": 42});
+ app.mailMsg({"color": "red", "size": 42});
} catch (e) {
app.alert("Caught expected error " + e);
}
« no previous file with comments | « samples/pdfium_test.cc ('k') | testing/resources/javascript/app_mailmsg_expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698