Commit Graph

3432 Commits

Author SHA1 Message Date
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
notmasteryet
e9df0bb8ca link to AESV2 encrypted file 2011-07-20 23:17:31 -05:00
Chris Jones
6f3fff5798 fix some bugs 2011-07-15 17:40:37 -07:00
Adil Allawi
8dbbbbb589 Add and wire in test files 2011-07-13 09:55:13 +01:00
Adil Allawi
9b3b49547a Add test files with CID fonts 2011-07-11 17:55:03 +01:00
Chris Jones
452ba3d85b #123, part 2: move more PDF-page rendering stuff into pdf.js 2011-07-10 23:21:13 -07:00
Andreas Gal
c1838bde7f Merge pull request #244 from sayrer/master
fix exception throwing syntax
2011-07-10 12:14:10 -07:00
Rob Sayre
e7e8e4f6c9 Fix wrong exception throwing syntax. 2011-07-10 07:54:19 -07:00
Saebekassebil
f88d05e3b5 Adding ASCIIHexDecode pdf to test/pdfs 2011-07-08 23:21:14 +02:00
Chris Jones
9c3aef1f19 remove State.masterMode 2011-07-06 14:26:35 -04:00
Adil Allawi
5d337b1c76 Added sample OpenOffice file to tests 2011-07-06 00:43:47 +01:00
Andreas Gal
7d54de5b32 Merge pull request #193 from cgjones/issue-192
add unicode test
2011-07-05 14:35:04 -07:00
Rob Sayre
4530384769 Add a make server target, fix paths to scripts. 2011-07-05 13:51:02 -07:00
Chris Jones
e8f98f4e16 add unicode test 2011-07-05 13:21:28 -04:00
Chris Jones
122d168b51 fix some bugs 2011-07-04 23:28:44 -04:00
Rob Sayre
f4b169ddba Resolve merge conflict in test_slave.html. 2011-07-04 14:48:13 -07:00
Chris Jones
d4f49c05c5 fix another binary-mode issue 2011-07-04 17:39:29 -04:00
Rob Sayre
1aa0b390b9 Make sure to guard against load errors. 2011-07-04 14:25:33 -07:00
Rob Sayre
a4f8251d10 Make test driver a separate js file, eradicate some global variables. 2011-07-04 14:17:23 -07:00
Chris Jones
eb17d81316 fix test.py bug on windows and stomped failure messages 2011-07-04 16:14:04 -04:00
Andreas Gal
a9e2115b3a Merge pull request #140 from cgjones/font-loading
Improve font loading check by using onload in subdocument
2011-07-01 20:30:14 -07:00
Rob Sayre
8031c7244c Make it possible to run the server without any test browsers. 2011-07-01 12:58:07 -07:00
Rob Sayre
53dcb85072 Make reftest analyzer popup in masterMode when there are differences, if --reftest is specified. 2011-07-01 11:16:42 -07:00
Rob Sayre
f4e5b2bcfd Merge remote branch 'upstream/master' 2011-06-30 21:02:47 -07:00
Chris Jones
49058c9174 merge with remote 2011-06-30 02:14:47 -07:00
Chris Jones
a564076b22 add another hackity hack to detect font loaded-ness 2011-06-30 02:08:53 -07:00
notmasteryet
5ece4da552 the "hieght" and the 72dpi<->96dpi fixes 2011-06-29 22:43:59 -05:00
Rob Sayre
aee8542ec0 Add a break statement, just in case. 2011-06-29 11:17:34 -07:00
Rob Sayre
a50136709f Make the browser command dispatch table-driven and fix the --browser option. 2011-06-29 11:13:43 -07:00
Rob Sayre
781bcb674b Clean some trailing whitespace. 2011-06-28 16:32:27 -07:00
Rob Sayre
37011784a5 Merge branch 'master' of https://github.com/sayrer/pdf.js 2011-06-28 16:30:48 -07:00
Rob Sayre
42b7c7dfc6 Use AppleScript to close Chrome. 2011-06-28 16:29:52 -07:00
Rob Sayre
061c998ca2 Add Google Chrome to Mac example manifest. 2011-06-28 16:29:11 -07:00
Rob Sayre
6e82ccd073 Add sample browser manifest for Linux. 2011-06-28 15:25:46 -07:00
Rob Sayre
d5ef6e1b05 Add support for Google Chrome. 2011-06-28 15:21:01 -07:00
Chris Jones
76f1291284 convert twips->CSS pixels 2011-06-27 20:18:40 -07:00
Chris Jones
2416d5e745 the new test file is a .link 2011-06-27 18:28:29 -07:00
Andreas Gal
cc9c7baefb Merge pull request #100 from notmasteryet/openweb-cover
CMYK colors; font fixes r=gal
2011-06-27 18:15:22 -07:00
notmasteryet
e87ee95c79 openweb-cover test 2011-06-27 20:13:11 -05:00
Rob Sayre
e90ac1d4cd Automatically load eq.log into the reftest page. 2011-06-27 13:22:37 -07:00
Rob Sayre
4b96c06c27 Always write eq.log, and optionally start reftest. 2011-06-27 12:37:12 -07:00
Rob Sayre
04dadb0f8f Ignore intelisa.pdf 2011-06-27 12:36:34 -07:00
Rob Sayre
c3cb102378 Add reftest-analyzer.xhtml 2011-06-27 12:35:48 -07:00
Rob Sayre
9d7e7ad33a Move downloading code into separate function for readability. 2011-06-26 12:05:02 -07:00
Rob Sayre
5c74c7a93e Merge remote branch 'upstream/master' 2011-06-26 11:10:47 -07:00
Rob Sayre
d240600296 Suppress telemetry banner. 2011-06-26 11:10:32 -07:00
Rob Sayre
605535e94e Check for browsers in verifyOptions, so the script fails early. 2011-06-26 10:58:41 -07:00
Rob Sayre
14da398dee Add timing information to test harness. 2011-06-26 10:54:57 -07:00
Andreas Gal
def0060a7c Merge pull request #92 from notmasteryet/multisize
Support for PDF with different page sizes r=gal
2011-06-26 09:38:09 -07:00
notmasteryet
8a044058f3 Support for multi-size page PDFs 2011-06-26 09:15:33 -05:00
Rob Sayre
fc65ddb7df Still more whitespace fixing. 2011-06-25 11:02:35 -07:00
Rob Sayre
cfcac65de4 Fix whitespace. 2011-06-25 09:51:27 -07:00
Rob Sayre
b016f4e76a Merge remote branch 'upstream/master' 2011-06-25 09:47:37 -07:00
Rob Sayre
6b675d8db6 Make the log auto-scroll if the scrollbar is near the bottom, but maintain position if it isn't. 2011-06-25 09:42:59 -07:00
Chris Jones
2e40fc0d4a errors thrown by |get numPages()| were not caught. GETTERS!!! 2011-06-24 20:41:47 -07:00
Andreas Gal
8daac2dc64 Merge pull request #82 from cgjones/master
add Intel ISA doc as load test, and make harness resilient to bad PDF loads r=gal
2011-06-24 19:50:55 -07:00
Chris Jones
925a4d1858 Merge remote branch 'gal' 2011-06-24 19:28:42 -07:00
Rob Sayre
3a99b05b79 Add favicon.ico file 2011-06-24 19:25:03 -07:00
Chris Jones
29b7489a3f add Intel ISA doc as load test, and make harness resilient to bad PDF loads 2011-06-24 19:23:29 -07:00
Rob Sayre
813b31750a Clean up 404 noise from favicon.ico, send Content-Length with GET responses. 2011-06-24 17:58:07 -07:00
Rob Sayre
40f67c9573 Turn off safe-browsing code in test harness. 2011-06-24 17:13:31 -07:00
Chris Jones
bfff2ba63f update test_slave for the new font-loading API 2011-06-24 17:11:39 -07:00
Rob Sayre
185b3e6272 Concurrent browsers sending snapshots asynchronously. 2011-06-24 16:14:33 -07:00
Rob Sayre
87f72705e9 Try harder to clean up after the browsers. 2011-06-24 09:45:41 -07:00
Rob Sayre
2bbfb7ae57 Add a line to prevent TestPilot from installing. 2011-06-24 09:00:13 -07:00
Rob Sayre
a1440b8e15 Run browsers in parallel. No limit on the number of concurrent browsers right now. 2011-06-24 08:43:26 -07:00
Rob Sayre
ebb75998a2 only supply a -foreground argument on Mac. 2011-06-23 15:47:25 -07:00
Rob Sayre
f212637433 Remove invalid trailing commas. 2011-06-23 15:09:17 -07:00
Rob Sayre
1d5e28347f Cleanup newlines and fix a mistakenly symlinked file. 2011-06-23 13:59:38 -07:00
Rob Sayre
d19a6ef983 Add sample manifests. Also make a browser path argument, so you can just specify one browser without messing with a manifest. 2011-06-23 13:47:43 -07:00
Rob Sayre
ed574cb6c0 Add SpecialPowers extension to allow the browser to quit from content, and a bunch of other exciting things. 2011-06-23 13:12:22 -07:00
Rob Sayre
984c4d4de6 Add a user.js file Firefox profile. Change HTTP server to run on background thread. 2011-06-23 11:24:36 -07:00
Rob Sayre
f31290e00f Add pdf.pdf to .gitignore 2011-06-23 10:27:53 -07:00
Rob Sayre
9da2b9c0ea Merge upstream. 2011-06-23 09:57:36 -07:00
Rob Sayre
2793532599 Modify paths of web resources to work with test resources more buried. 2011-06-23 09:48:34 -07:00
Rob Sayre
2454354b59 Move some files around. 2011-06-23 09:10:06 -07:00
Rob Sayre
2ac8bbed51 Add new test directories. 2011-06-23 09:05:51 -07:00