Commit Graph

226 Commits

Author SHA1 Message Date
Artur Adib
1d4e3025b6 PDF --> PDFJS, global wrapper named 2011-10-26 14:46:57 -04:00
Artur Adib
6eaa49761b make test: Do not require build 2011-10-26 11:30:39 -04:00
Artur Adib
e9c96c6052 Nit 2011-10-25 21:31:35 -04:00
Artur Adib
f9ba29cf12 Fixed tests 2011-10-25 21:29:51 -04:00
Artur Adib
8fbb05613e Progress 2011-10-25 09:10:56 -07:00
=
2ad1e622ab Move remaining worker.js code into pdf.js. 2011-10-20 12:13:18 -07:00
=
65ea07a3a2 Initial merge of master. 2011-10-19 11:14:13 -07:00
=
c9508100ff Initial merge with master 2011-10-19 11:09:17 -07:00
Kalervo Kujala
633baa881f Make test_slave.html as valid html5.
Fix also warnings in the error console that appear from a test run.
2011-10-11 22:09:13 +02:00
notmasteryet
aa98632b0b Fixing DescendantFonts object fetching (#600) 2011-10-11 22:07:54 +02:00
Julian Viereck
23e413520b Small fixes + docs 2011-10-08 17:08:17 +02:00
Julian Viereck
3054102d3b Merge worker_pull with master 2011-10-08 14:18:23 +02:00
notmasteryet
0c8f0cd6c2 Fixing PDF bad structure and 'fi' ligature 2011-10-07 22:24:26 -05:00
Chris Jones
fac4f5401c Merge pull request #623 from arturadib/pdfs-gitignore
Git-ignore all PDFs except the listed ones
2011-10-07 12:09:20 -07:00
Brendan Dahl
d6edd79d17 Merge pull request #589 from notmasteryet/rgbt
Recovering from RGBT-command (ref #577)
2011-10-07 11:56:10 -07:00
=
be05f12a62 Move closing the file to an appropriate area. 2011-10-06 16:19:17 -07:00
=
d4ea60ea1f Merge remote-tracking branch 'upstream/master' into boundingbox 2011-10-06 09:22:00 -07:00
Artur Adib
fb32ff0ea9 Git-ignore all PDFs except the listed ones
This forces contributors to deal with gitignore only when bundling a new test, rather than making all users of "make test" having to constantly update their gitignores because of new PDFs.
2011-10-06 11:01:22 -04:00
notmasteryet
9327976b07 Making ThuluthFeatures "eq" reftest 2011-10-05 21:22:52 -05:00
=
c48f85621f Fixing bounding boxes and test ref file writing. 2011-10-05 09:18:20 -07:00
Adil Allawi
3b3f134e35 Merge commit 'e5d79fd0da5a0dab8b717062651c2fbd658a4b51' 2011-10-05 08:42:54 +01:00
=
b24bec27ca Address pull request feedback. 2011-10-04 09:06:51 -07:00
=
8f57135513 fix merge conflicts 2011-10-04 08:52:15 -07:00
Adil Allawi
179533a06c Add test case 2011-10-04 16:18:39 +01:00
Artur Adib
1508c03414 Merge pull request #602 from arturadib/test-features
New test/ features (useful for bot)
2011-10-03 18:57:02 -07:00
vingtetun
7842c65099 Merge pull request #556 from notmasteryet/cid0
Initial CID-0 font encodings
2011-10-03 17:36:51 -07:00
=
ff2dea38ec fix merge conflicts 2011-10-03 17:18:47 -07:00
=
5f81017726 #502 Adding basic Type3 font support. 2011-10-03 16:36:01 -07:00
Artur Adib
07b52bf1c6 Lint, extra space eol 2011-10-03 15:25:02 -04:00
Artur Adib
2f209a8e85 Oh, 80-char limit... super modern 2011-10-03 15:21:26 -04:00
Artur Adib
99f419fa6b New test/ features, useful for bot
test.py: 
  added option --noPrompts
  removed unnecessary warnings (masterMode)
  removed unnecessary "Creating tmp failed" message when error is simply b/c it already exists

driver.js:
  added per PDF manifest option "pageLimit", e.g. "pageLimit":100
2011-10-03 14:53:45 -04:00
notmasteryet
9e53bd78d9 Fixing "no spaces" issue (ref #577) 2011-10-01 21:24:11 -05:00
notmasteryet
d409355f62 Recovering from RGBT-command (ref #577) 2011-10-01 19:01:58 -05:00
notmasteryet
66cd79f308 Initial CID0 font encodings 2011-09-28 19:54:40 -05:00
Kalervo Kujala
de408dac70 Fix lint warnings.
And name anonymous functions.
2011-09-27 21:43:48 +03:00
Artur Adib
83854a085c Implemented getPdf(). Closes #516
Conflicts:

	examples/helloworld/hello.js
2011-09-27 13:30:47 -04:00
Kalervo Kujala
2094c29169 Use data directly in PDFDoc.
And create the Stream inside the PDFDoc constructor for a cleaner interface.
Also encapsulate unnecessary details from the user.
2011-09-26 20:58:18 +03:00
notmasteryet
39ba5324a7 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into invalidpdf-1
Conflicts:
	test/test_manifest.json
2011-09-24 09:57:59 -05:00
notmasteryet
91a5f73708 Implement "skipPages" feature for reftests 2011-09-24 09:44:50 -05:00
=
8006faf74e update to master 2011-09-23 17:49:23 -07:00
Chris Jones
54e69d59bf Merge pull request #517 from kkujala/master
Name anonymous functions for debugging purposes.
2011-09-23 16:46:04 -07:00
=
630c98052e Adds support for all the basic graphic state operators 2011-09-23 14:37:44 -07:00
Kalervo Kujala
2d03f93fed Name anonymous functions for debugging purposes.
It also makes profiling more convenient.
2011-09-23 20:25:24 +03:00
notmasteryet
ba74e56c35 Using !== for objects comparison 2011-09-23 06:58:54 -05:00
notmasteryet
f3e4cf20cc intermediate variable for document.body 2011-09-22 20:18:43 -05:00
notmasteryet
107576d634 Removing introduced by the test run DOM elements 2011-09-22 18:04:50 -05:00
=
8072052fb1 Handle references for color space names that are defined in a dictionary 2011-09-22 13:17:28 -07:00
Vivien Nicolas
c93ffd645f Merge remote branch 'upstream/master' into metrics 2011-09-22 01:24:39 +02:00
Vivien Nicolas
41ebb55d75 Fix tests failures 2011-09-22 01:22:34 +02:00
=
e318820a39 Ignore previously parsed xref streams 2011-09-21 10:04:21 -07:00
=
31d64af855 Handle missing encoding differences array 2011-09-20 15:42:52 -07:00
vingtetun
abce61cb57 Merge pull request #497 from notmasteryet/tree-20
removing onload from driver.js
2011-09-19 07:37:34 -07:00
vingtetun
7a81e79138 Merge pull request #466 from notmasteryet/charstoglyphs
Refactoring charsToUnicode into charsToGlyphs
2011-09-19 07:34:46 -07:00
notmasteryet
999487444d removing onload from driver.js 2011-09-19 07:06:20 -05:00
notmasteryet
7036bcd4c7 Zero gjslint warnings mark 2011-09-18 14:44:57 -05:00
notmasteryet
e59a36a015 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs 2011-09-18 09:11:53 -05:00
notmasteryet
1f047495b1 Fixing large cmap-s; reduce changes in the indent encoding 2011-09-17 17:13:22 -05:00
notmasteryet
0b1b8da982 Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs
Conflicts:
	test/test_manifest.json
2011-09-17 11:23:34 -05:00
notmasteryet
1d00b89285 Modifying how the artofwar encryption handled; add wdsg_fitc as reftest 2011-09-17 10:32:42 -05:00
Julian Viereck
00290b9ff4 Rename some stuff and add missing font_handler.js 2011-09-16 09:31:12 -07:00
Artur Adib
f3745f7c13 New README, .gitignores; Makefile
Makefile: commented out unnecessary closure download and shell testing (at least until someone decides to work on this).
2011-09-16 08:28:59 -07:00
Julian Viereck
921f8bd669 Tried to add a destroy function to free memeory, but doesn't seem to help 2011-09-16 08:09:58 -07:00
Julian Viereck
8f21f87fd9 Add firstPage option to tasks to speed up testing certain pages 2011-09-15 23:36:08 -07:00
Kalervo Kujala
07254bb0a5 Fix small lint warnings. 2011-09-15 23:32:44 +03:00
Julian Viereck
fea3388c41 Make testdriver use new worker infrastructure 2011-09-15 09:03:50 -07:00
notmasteryet
1347db797c Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into charstoglyphs
Conflicts:
	test/test_manifest.json
2011-09-14 21:45:12 -05:00
notmasteryet
e512000877 Fixing properties.widths is null issue; fips197 test file 2011-09-14 21:29:32 -05:00
notmasteryet
94da20d776 Disable encryption when a ToUnicode stream is used in a font 2011-09-13 19:23:49 -05:00
Kalervo Kujala
8e5a8fb49f Fix Mode comment lines. 2011-09-12 20:37:33 +03:00
notmasteryet
4e21e417cd Fix test_slave.html ref to metrics.js 2011-09-09 16:46:46 -05:00
Artur Adib
1296da313c Fixed browser shutdown bug for Macs
The unnecessary spaces in the URL query were causing `tellAppToQuit()` to fail to detect the query `path`, so the browser was being killed via timeout instead of intended script.
2011-09-06 13:59:14 -04:00
notmasteryet
3abe909556 Allow test.py serve files with spaces in the name 2011-09-05 22:19:20 -05:00
notmasteryet
92c2938bc1 Add PdKids.pdf as a ref test 2011-08-30 22:32:56 -05:00
notmasteryet
8e407fe06d Adds cable.pdf link to tests 2011-08-28 16:36:58 -05:00
notmasteryet
db09e34f71 Fix inverted B/W images in PIPEHEATCABLE.PDF 2011-08-28 16:14:37 -05:00
notmasteryet
ff1f3ed882 Adds PDF index for "make server" 2011-08-27 10:10:36 -05:00
notmasteryet
03a39b899a Add SVG to the 'make server' known types list 2011-08-25 22:02:32 -05:00
notmasteryet
238ac7c812 Fix insertAdjacentHTML for pre FF8 2011-08-25 19:14:51 -05:00
Kalervo Kujala
e00ae164f0 Catch multiline log function calls. 2011-08-24 19:11:38 +03:00
Kalervo Kujala
3fa8bba48e Make 'make test' factors faster.
Profiling with firebug reveals that log and checkScrolling functions slow down
the 'make test' by factors.

Use insertAdjacentHtml in the log fucntion insteand of appending to
innerHTML. Also call checkScrolling function only when it is prudent to do
instead of unnecessarily in every log function call.
2011-08-23 23:21:15 +03:00
Adil Allawi
5a528944f0 Change the way Type 2 CID fonts are encoded. Move the cmap glyphs above the first 255 unicode values so that fillText does not change them and create an encoding to map characters to the glyphs. 2011-08-19 14:05:07 +01:00
Kalervo Kujala
7cbdc982c5 Report results properly to test.py from driver.js.
If the PDFDoc creation failed in driver.js then that was not informed back to
test.py. This lead to State.remaining being off by one. And that did not let
the test to end as expected. Instead the test hung indefinitely.

This change now reveals TEST-UNEXPECTED-FAIL which was hidden previously.
2011-08-17 01:33:00 +03:00
Kalervo Kujala
965193b38d Keep the results visible in test_slave.html before quitting.
Currently the innerHTML is replaced with text:
Tests are finished.
CLOSE ME!
Instead of replacing the innerHTML prepend that text to it.
This way the user can still check the results of the test.
2011-08-16 23:16:29 +03:00
Kalervo Kujala
802f664baa Indent the driver.js correctly. 2011-08-16 22:17:46 +03:00
notmasteryet
447ff0a059 Add JAI.pdf (issue #292) to the ref tests 2011-08-14 12:26:48 -05:00
notmasteryet
aad77fcc55 BaseFont and misc fonts fixes 2011-08-14 08:40:22 -05:00
Kalervo Kujala
56ed06e7ea Refactor the lines that are over 80 characters long in driver.js. 2011-08-12 01:00:32 +03:00
Kalervo Kujala
9634eab60b Use strict in user.js.
And correct the coding style according to gjslint.
2011-08-09 00:24:01 +03:00
Kalervo Kujala
30ecf43676 Correct the coding style according to gjslint for driver.js.
And remove stray tabs.
2011-08-09 00:03:08 +03:00
Andreas Gal
fe7c03dece Merge pull request #310 from brendandahl/rotation
Adding support for page rotation
2011-08-06 16:14:35 -07:00
Brendan Dahl
4377eed920 Adding support for page rotation 2011-08-06 14:41:18 -07:00
Kalervo Kujala
25a6e09d78 Show browser-test results in pageNum/numPages format.
This is only for convenience in order to see how far in the pdf the test
currently is.
2011-08-07 00:29:34 +03:00
Kalervo Kujala
dc01974aa4 Create an example browser_manifest.json for windows. 2011-08-06 23:53:08 +03:00
Kalervo Kujala
b1ea9332b8 Avoid browser-test stoppage when task.pdfDoc is undefined.
If nextTask leaves task.pdfDoc as undefined then sendTaskResult will fail on
that. SendTaskResult tries to access task.pdfDoc.numPages which cannot
succeed. This leads to a complete stop in the browser-test.
2011-08-06 23:33:07 +03:00
Kalervo Kujala
17e02e3c39 Use strict in driver.js.
And declare undeclared variables.
2011-08-06 22:54:16 +03:00
Andreas Gal
e2ed5d28a6 Merge pull request #303 from cgjones/master
Fix bug in ref-updating code
2011-08-06 05:49:13 -07:00
sbarman
3c0ba19c88 Added new link file 2011-08-06 00:22:57 -07:00
Chris Jones
41bdf82137 Fix bug in ref-updating code 2011-08-06 00:07:33 -07:00
sbarman
4b132a7b3e Added test for inline images 2011-08-03 22:22:24 -07:00
Artur Adib
02a6e3ffec Updated test/pdfs link (intelisa.pdf) 2011-08-01 17:30:17 -04:00