aboutsummaryrefslogtreecommitdiff
path: root/testing/resources/javascript/app_methods.in
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 18:05:38 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 18:05:38 +0000
commite03171e52ec4232369ab3b46e11d3a0abe1eb630 (patch)
tree6a57f6a0948032e6ec387c22d8b462215e6ca1e4 /testing/resources/javascript/app_methods.in
parent8bbfdf2fca7197a0eccfef7b6fc27c590a44e7f7 (diff)
parent326d96bf5d52fdcf790b467b13f58ba3df3e81e4 (diff)
downloadpdfium-e03171e52ec4232369ab3b46e11d3a0abe1eb630.tar.gz
Change-Id: If925f85c6a039b56ff549fd5327795f57b9cd12c
Diffstat (limited to 'testing/resources/javascript/app_methods.in')
-rw-r--r--testing/resources/javascript/app_methods.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/resources/javascript/app_methods.in b/testing/resources/javascript/app_methods.in
index 81fa66019..1c01e8473 100644
--- a/testing/resources/javascript/app_methods.in
+++ b/testing/resources/javascript/app_methods.in
@@ -19,6 +19,7 @@ endobj
/Parent 2 0 R
/MediaBox [0 0 612 792]
>>
+endobj
% OpenAction action
{{object 10 0}} <<
/Type /Action
@@ -26,7 +27,7 @@ endobj
/JS 11 0 R
>>
endobj
-% JS program to exexute
+% JS program to execute
{{object 11 0}} <<
{{streamlen}}
>>
@@ -34,7 +35,8 @@ stream
{{include expect.js}}
try {
- expect("app.alert('message', 1, 2, 'title')", 0);
+ // Test unicode support, no particular reason for these CJK characters.
+ expect("app.alert('message \u4023', 1, 2, 'title \u4024')", 0);
expect("app.alert({'cMsg': 'message', 'cTitle': 'title'})", 0);
expect("app.alert({'cMsg': 'message', 'cTitle': 'title', 'nIcon': 3, 'nType': 4})", 0);
expect("app.alert(undefined)", 0);