From ec2687680b0d033c3634e8dd0f8d8586c13494f6 Mon Sep 17 00:00:00 2001 From: tonikitoo Date: Wed, 10 Aug 2016 12:29:28 -0700 Subject: Make Document's 'info' property readonly As per the PDF specification in [1], page 103, the 'info' property of the Document object is readonly. [1] http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf Review-Url: https://codereview.chromium.org/2235883003 --- testing/resources/javascript/document_props_expected.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/resources/javascript') diff --git a/testing/resources/javascript/document_props_expected.txt b/testing/resources/javascript/document_props_expected.txt index 90914cda51..28172ee609 100644 --- a/testing/resources/javascript/document_props_expected.txt +++ b/testing/resources/javascript/document_props_expected.txt @@ -46,7 +46,7 @@ Alert: ERROR: Document.documentFileName: Cannot assign to readonly property. Alert: this.external = 3; yields 3 Alert: ERROR: Document.filesize: Cannot assign to readonly property. Alert: ERROR: Document.icons: Cannot assign to readonly property. -Alert: this.info = 3; yields 3 +Alert: ERROR: Document.info: Cannot assign to readonly property. Alert: this.keywords = 3; yields 3 Alert: this.layout = 3; yields 3 Alert: this.media = 3; yields 3 -- cgit v1.2.3