summaryrefslogtreecommitdiff
path: root/testing/resources/javascript/document_methods.in
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-08-31 14:44:21 -0700
committerTom Sepez <tsepez@chromium.org>2015-08-31 14:44:21 -0700
commit6e369c2ebb4769a42736b32154c0de12b73df45d (patch)
tree60bde53605565d86478d3d4c3c51ae58f180640c /testing/resources/javascript/document_methods.in
parent7858c0aae5ee449dafe23c0e1aa0c164ae2889eb (diff)
downloadpdfium-6e369c2ebb4769a42736b32154c0de12b73df45d.tar.xz
Fix two issues shown by bug 489995
- Handle NULL in buffer operator<< under JS mailForm() calls. - Ensure correct type in JS addIcon() calls. BUG=489995 R=brucedawson@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/1327473002 .
Diffstat (limited to 'testing/resources/javascript/document_methods.in')
-rw-r--r--testing/resources/javascript/document_methods.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/resources/javascript/document_methods.in b/testing/resources/javascript/document_methods.in
index b2467f37c4..3cd3330b87 100644
--- a/testing/resources/javascript/document_methods.in
+++ b/testing/resources/javascript/document_methods.in
@@ -122,6 +122,7 @@ function testAddIcon() {
// Second argument must actually be an icon.
expectError('this.addIcon("myicon", 3)');
+ expectError('this.addIcon("myicon", undefined)');
// TODO(tsepez): test success cases.
}