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

Side by Side Diff: testing/resources/javascript/consts.pdf

Issue 923293002: Merge to XFA: Run javascript/pixel tests via automated script. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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
OLDNEW
(Empty)
1 %PDF-1.7
2 % ò¤ô
3 1 0 obj <<
4 /Type /Catalog
5 /Pages 2 0 R
6 /OpenAction 10 0 R
7 >>
8 endobj
9 2 0 obj <<
10 /Type /Pages
11 /Count 1
12 /Kids [
13 3 0 R
14 ]
15 >>
16 endobj
17 % Page number 0.
18 3 0 obj <<
19 /Type /Page
20 /Parent 2 0 R
21 /Resources <<
22 /Font <</F1 15 0 R>>
23 >>
24 /Contents [21 0 R]
25 /MediaBox [0 0 612 792]
26 >>
27 % OpenAction action
28 10 0 obj <<
29 /Type /Action
30 /S /JavaScript
31 /JS 11 0 R
32 >>
33 endobj
34 % JS program to exexute
35 11 0 obj <<
36 >>
37 stream
38
39 function doTest(name, props) {
40 for (var i = 0; i < props.length; ++i) {
41 var expr = name + "." + props[i];
42 app.alert(expr + " is " + eval(expr));
43 }
44 }
45
46 try {
47 doTest("border", ["s", "b", "d", "i", "u", "nonesuch"]);
48 doTest("display", ["visible", "hidden", "noPrint", "noView", "nonesuch"]);
49 doTest("font", ["Times", "TimesB", "TimesI", "TimesBI", "Helv", "HelvB",
50 "HelvI", "HelvBI", "Cour", "CourB", "CourI", "CourBI",
51 "Symbol", "ZapfD", "Nonesuch"]);
52
53 doTest("highlight", ["n", "i", "p", "o", "nonesuch"]);
54 doTest("position", ["textOnly", "iconOnly", "iconTextV", "textIconV",
55 "iconTextH", "textIconH", "overlay", "nonesuch"]);
56
57 doTest("scaleHow", ["proportional", "anamorphic", "nonesuch"]);
58 doTest("scaleWhen", ["always", "never", "tooBig", "tooSmall", "nonesuch"]);
59 doTest("style", ["ch", "cr", "di", "ci", "st", "sq", "nonesuch"]);
60 doTest("zoomtype", ["none", "fitP", "fitW", "fitH", "fitV", "pref", "refW",
61 "nonesuch"]);
62 } catch (e) {
63 app.alert("ERROR: " + e.toString());
64 }
65 endstream
66 endobj
67 xref
68 0 12
69 0000000000 65535 f
70 0000000015 00000 n
71 0000000089 00000 n
72 0000000177 00000 n
73 0000000000 65535 f
74 0000000000 65535 f
75 0000000000 65535 f
76 0000000000 65535 f
77 0000000000 65535 f
78 0000000000 65535 f
79 0000000334 00000 n
80 0000000426 00000 n
81 trailer <<
82 /Root 1 0 R
83 >>
84 startxref
85 1555
86 %%EOF
OLDNEW
« no previous file with comments | « testing/resources/javascript/app_alert.pdf ('k') | testing/resources/javascript/document_props.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698