pdf.js/test
Rob Wu c676ecb5a0 Detect scripted auto-print requests
Fixes #6106

To avoid future regressions, two new unit tests were added:
1. A new PDF based on the report from #6106, which contains an
   OpenAction of type JavaScript and a string "this.print({...}".
2. An existing PDF from https://bugzil.la/1001080 (from #4698).

Although it does not matter, since we don't execute the JavaScript code,
I have also changed "print(true)" to "print({})" since the print method
takes an object (not a boolean). See "Printing PDF documents", page 62:
http://adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_developer_guide.pdf
2015-07-20 18:25:02 +02:00
..
features cleaned whitespace 2015-02-17 11:07:37 -05:00
font cleaned whitespace 2015-02-17 11:07:37 -05:00
mozcentral cleaned whitespace 2015-02-17 11:07:37 -05:00
pdfs Detect scripted auto-print requests 2015-07-20 18:25:02 +02:00
resources Merge pull request #5905 from timvandermeij/specialpowers 2015-04-27 10:36:54 -07:00
stats cleaned whitespace 2015-02-17 11:07:37 -05:00
ttx Update fonttools location and version (issue 6223) 2015-07-17 12:51:09 +02:00
unit Detect scripted auto-print requests 2015-07-20 18:25:02 +02:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
downloadutils.js Fixes lint warning W004 in /test 2014-04-11 00:02:33 +02:00
driver.js Add --testfilter (-t) flag to run a specific test 2015-07-18 17:31:56 +02:00
test_manifest.json Improve robustness of stream parser (invalid length) 2015-07-11 20:12:49 +02:00
test_slave.html Implement an option to disable automatic scrolling 2015-05-21 20:19:36 +02:00
test.js Add --testfilter (-t) flag to run a specific test 2015-07-18 17:31:56 +02:00
testutils.js Fixes lint warning W004 in /test 2014-04-11 00:02:33 +02:00
webbrowser.js Tests: Resolve -b to full path in webbrowser.js 2015-07-14 00:20:07 +02:00
webserver.js Fix lint error: "test/webserver.js: line 177, col 106, Line is too long." 2015-01-08 12:22:34 +01:00