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

Side by Side Diff: testing/resources/javascript/app_alert.in

Issue 1639253008: Merge to XFA: Fix behaviour of app.alert() with a single object argument. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
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 unified diff | Download patch
« no previous file with comments | « samples/pdfium_test.cc ('k') | testing/resources/javascript/app_alert_expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{header}} 1 {{header}}
2 {{object 1 0}} << 2 {{object 1 0}} <<
3 /Type /Catalog 3 /Type /Catalog
4 /Pages 2 0 R 4 /Pages 2 0 R
5 /OpenAction 10 0 R 5 /OpenAction 10 0 R
6 >> 6 >>
7 endobj 7 endobj
8 {{object 2 0}} << 8 {{object 2 0}} <<
9 /Type /Pages 9 /Type /Pages
10 /Count 1 10 /Count 1
(...skipping 17 matching lines...) Expand all
28 /Type /Action 28 /Type /Action
29 /S /JavaScript 29 /S /JavaScript
30 /JS 11 0 R 30 /JS 11 0 R
31 >> 31 >>
32 endobj 32 endobj
33 % JS program to exexute 33 % JS program to exexute
34 {{object 11 0}} << 34 {{object 11 0}} <<
35 >> 35 >>
36 stream 36 stream
37 app.alert("This test passes if alert() logs output under the test utility."); 37 app.alert("This test passes if alert() logs output under the test utility.");
38 app.alert("message", 1, 2, "title");
39 app.alert({"cMsg": "message", "cTitle": "title"});
40 app.alert({"cMsg": "message", "cTitle": "title", "nIcon": 3, "nType": 4});
41 app.alert(undefined);
42 app.alert(null);
43 app.alert(true);
44 app.alert(false);
45 app.alert(42);
46 app.alert([1, 2, 3]);
47 app.alert([1, 2, {"color": "red"}]);
48 app.alert({"color": "red"}, 5, 6, "title");
49 try {
50 app.alert();
51 } catch (e) {
52 app.alert("Caught expected error " + e);
53 }
54 try {
55 app.alert({});
56 } catch (e) {
57 app.alert("Caught expected error " + e);
58 }
59 try {
60 app.alert({"color": "red", "size": 42});
61 } catch (e) {
62 app.alert("Caught expected error " + e);
63 }
38 endstream 64 endstream
39 endobj 65 endobj
40 {{xref}} 66 {{xref}}
41 trailer << 67 trailer <<
42 /Root 1 0 R 68 /Root 1 0 R
43 >> 69 >>
44 {{startxref}} 70 {{startxref}}
45 %%EOF 71 %%EOF
OLDNEW
« no previous file with comments | « samples/pdfium_test.cc ('k') | testing/resources/javascript/app_alert_expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698