Fix two issues shown by bug 489995
[pdfium.git] / testing / resources / javascript / document_methods.in
index b2467f3..3cd3330 100644 (file)
@@ -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.
 }