Files
rk35xx-android14/external/pdfium/testing/resources/javascript/constructor.in
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

68 lines
1.2 KiB
Plaintext

{{header}}
{{object 1 0}} <<
/Type /Catalog
/Pages 2 0 R
/OpenAction 10 0 R
>>
endobj
{{object 2 0}} <<
/Type /Pages
/Count 1
/Kids [
3 0 R
]
>>
endobj
% Page number 0.
{{object 3 0}} <<
/Type /Page
/Parent 2 0 R
/MediaBox [0 0 612 792]
>>
endobj
% OpenAction action
{{object 10 0}} <<
/Type /Action
/S /JavaScript
/JS 11 0 R
>>
endobj
% JS program to execute
{{object 11 0}} <<
{{streamlen}}
>>
stream
{{include constructor.js}}
// Global objects
testIllegalConstructor("this");
testIllegalConstructor("globalThis");
// Static objects
testIllegalConstructor("app");
testIllegalConstructor("event");
testIllegalConstructor("font");
testIllegalConstructor("global");
testIllegalConstructor("util");
testIllegalConstructor("style");
testIllegalConstructor("color");
testIllegalConstructor("border");
testIllegalConstructor("display");
testIllegalConstructor("console");
testIllegalConstructor("position");
testIllegalConstructor("highlight");
testIllegalConstructor("zoomtype");
testIllegalConstructor("scaleHow");
testIllegalConstructor("scaleWhen");
// Dynamic objects
timer1 = app.setTimeOut("var marked = true", 1000);
testLegalConstructor("timer1");
endstream
endobj
{{xref}}
{{trailer}}
{{startxref}}
%%EOF