Commit Graph

6442 Commits

Author SHA1 Message Date
andreasgal
e2843a5ab0 Merge pull request #25 from notmasteryet/patch-2
Add Yury to the contributors list
2011-06-18 22:03:00 -07:00
notmasteryet
26fc2f17b1 Add Yury to the contributors list 2011-06-18 23:49:31 -05:00
notmasteryet
c3a7bc7d79 Add Yury to the contributors list 2011-06-18 23:49:31 -05:00
andreasgal
d0d608b17f Merge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9
XRefStream implementation
2011-06-18 21:38:10 -07:00
andreasgal
6790449f7b Merge pull request #23 from notmasteryet/a2d7c18aee4d66cd37085bf2597808acfeaec8e9
XRefStream implementation
2011-06-18 21:38:10 -07:00
Chris Jones
fcbf6e61ce CharSet is optional 2011-06-18 21:18:56 -07:00
Chris Jones
1be8c5e7ed CharSet is optional 2011-06-18 21:18:56 -07:00
Chris Jones
8fcd7c6635 add Vivien to contributors list (list is in order of chronogically first push/pull, nothing else) 2011-06-18 21:12:21 -07:00
Chris Jones
17cbc72e19 add Vivien to contributors list (list is in order of chronogically first push/pull, nothing else) 2011-06-18 21:12:21 -07:00
Chris Jones
3b36a5577b Merge pull request #21 from justindarc/master
Multi-page viewer
2011-06-18 21:06:03 -07:00
Chris Jones
8bf1792b8a Merge pull request #21 from justindarc/master
Multi-page viewer
2011-06-18 21:06:03 -07:00
Vivien Nicolas
7e3c1340ff Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap) 2011-06-19 04:35:25 +02:00
Vivien Nicolas
b0cde50e21 Re-enable TrueType and add a TODO about translating the ToUnicode entry (note TrueType still fails on cmap) 2011-06-19 04:35:25 +02:00
Chris Jones
f7aa149778 Initial import of first test harness
The harness (test.py) operates as follows.  First it locates executable browsers
(or symlinks or scripts) named "[browser][version]", e.g. "firefox4".
It then launches the located browsers and asks them to load the file
test_slave.html.  At the same time, test.py sets up an HTTP server on
localhost:8080 (there's a race condition here currently ;).  After
test_slave loads in the browser(s), it fetches the task manifest
(test_manifest.json).  The entries in the manifest specify which PDF
to load and how many times to cycle through page rendering.  This will
probably evolve over time.  test_slave then performs the requested
tasks and POSTs the results back to test.py, which saves them.  When
all the results of for a task are in, test.py checks them.

There are three types of tests currently.  "==" tests compare the
rendering of a PDF against a master copy.  This is not yet implemented
because setting up a master copy is complicated.  "fbf" tests render
all a PDF's pages, then go back to page 1 and render all pages a
second time.  The renderings from the first round must match the ones
from the second round.  "load" tests just check that a PDF's pages
load without errors.

Currently the test harness will only launch a "firefox4" target.  This
can be a bash script in your pdf.js checkout, pdf.js/firefox4,
something like the following

 #!/bin/bash
 dist="/path/to/firefox4/installation"
 profile=`mktemp -dt 'pdf.js-test-ff-profile-XXXXXXXXXX'`
 $dist/firefox -no-remote -profile $profile $*
 rm -rf $profile

(Yes, this script doesn't clean up properly on early termination.)
It's possible to run the tests in a normal browsing session, but that
might be annoying.  With that set up, run the harness like so

 python test.py

If all goes well, you'll see all "TEST-PASS" messages printed to
stdout.  If something goes wrong, you'll see "TEST-UNEXPECTED-FAIL"
printed to stdout.
2011-06-18 18:09:21 -07:00
Chris Jones
7c024b89aa Initial import of first test harness
The harness (test.py) operates as follows.  First it locates executable browsers
(or symlinks or scripts) named "[browser][version]", e.g. "firefox4".
It then launches the located browsers and asks them to load the file
test_slave.html.  At the same time, test.py sets up an HTTP server on
localhost:8080 (there's a race condition here currently ;).  After
test_slave loads in the browser(s), it fetches the task manifest
(test_manifest.json).  The entries in the manifest specify which PDF
to load and how many times to cycle through page rendering.  This will
probably evolve over time.  test_slave then performs the requested
tasks and POSTs the results back to test.py, which saves them.  When
all the results of for a task are in, test.py checks them.

There are three types of tests currently.  "==" tests compare the
rendering of a PDF against a master copy.  This is not yet implemented
because setting up a master copy is complicated.  "fbf" tests render
all a PDF's pages, then go back to page 1 and render all pages a
second time.  The renderings from the first round must match the ones
from the second round.  "load" tests just check that a PDF's pages
load without errors.

Currently the test harness will only launch a "firefox4" target.  This
can be a bash script in your pdf.js checkout, pdf.js/firefox4,
something like the following

 #!/bin/bash
 dist="/path/to/firefox4/installation"
 profile=`mktemp -dt 'pdf.js-test-ff-profile-XXXXXXXXXX'`
 $dist/firefox -no-remote -profile $profile $*
 rm -rf $profile

(Yes, this script doesn't clean up properly on early termination.)
It's possible to run the tests in a normal browsing session, but that
might be annoying.  With that set up, run the harness like so

 python test.py

If all goes well, you'll see all "TEST-PASS" messages printed to
stdout.  If something goes wrong, you'll see "TEST-UNEXPECTED-FAIL"
printed to stdout.
2011-06-18 18:09:21 -07:00
Vivien Nicolas
2670aa680b Another undeclared variable caught by strict mode 2011-06-19 03:08:43 +02:00
Vivien Nicolas
c766954ddf Another undeclared variable caught by strict mode 2011-06-19 03:08:43 +02:00
Vivien Nicolas
a46ebe73ff Ask chromium to shut up on font/otf mimetype by using another wrong mimetype and fix a few more 'strict mode' errrors 2011-06-19 03:04:15 +02:00
Vivien Nicolas
0ddf9a56a0 Ask chromium to shut up on font/otf mimetype by using another wrong mimetype and fix a few more 'strict mode' errrors 2011-06-19 03:04:15 +02:00
Vivien Nicolas
7517256e54 Adding myself as a contributor 2011-06-19 02:36:47 +02:00
Vivien Nicolas
972bbed127 Adding myself as a contributor 2011-06-19 02:36:47 +02:00
Vivien Nicolas
e62bd48a9e Use strict mode for js files 2011-06-19 02:35:28 +02:00
Vivien Nicolas
f4282f9802 Use strict mode for js files 2011-06-19 02:35:28 +02:00
Vivien Nicolas
59bd7620de Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088) 2011-06-19 02:25:21 +02:00
Vivien Nicolas
dd5c87dfdc Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088) 2011-06-19 02:25:21 +02:00
Justin D'Arcangelo
95a8a3dc2f Minor CSS fix. 2011-06-18 20:15:49 -04:00
Justin D'Arcangelo
1fde6b88e7 Minor CSS fix. 2011-06-18 20:15:49 -04:00
Justin D'Arcangelo
dd0ed98789 Removed .DS_Store files. 2011-06-18 20:13:14 -04:00
Justin D'Arcangelo
6ced547a5f Removed .DS_Store files. 2011-06-18 20:13:14 -04:00
Justin D'Arcangelo
9c04f4dbb6 Updated the toolbar graphics. 2011-06-18 20:11:56 -04:00
Justin D'Arcangelo
17574e2d1c Updated the toolbar graphics. 2011-06-18 20:11:56 -04:00
sbarman
57034abe4c Merge branch 'master' into tiling 2011-06-18 13:07:20 -07:00
sbarman
8cd69681fc Merge branch 'master' into tiling 2011-06-18 13:07:20 -07:00
sbarman
ab6ff77b41 Fixed predictor 2011-06-18 13:06:54 -07:00
sbarman
609230ad07 Fixed predictor 2011-06-18 13:06:54 -07:00
Vivien Nicolas
8d9ffb1872 Use measureText instead of mozMeasureText (deprecated) 2011-06-18 21:54:53 +02:00
Vivien Nicolas
f1e8b23f30 Use measureText instead of mozMeasureText (deprecated) 2011-06-18 21:54:53 +02:00
Vivien Nicolas
a53736b732 Merge remote branch 'upstream/master' 2011-06-18 21:53:52 +02:00
Vivien Nicolas
8b88ee0338 Merge remote branch 'upstream/master' 2011-06-18 21:53:52 +02:00
sbarman
8a18c82f15 Merge branch 'master' into predictor 2011-06-18 09:33:59 -07:00
sbarman
0b9b0390b6 Merge branch 'master' into predictor 2011-06-18 09:33:59 -07:00
Justin D'Arcangelo
2d85ae2422 Edited the contributors list in the LICENSE file. 2011-06-18 06:11:21 -04:00
Justin D'Arcangelo
616b4a5182 Edited the contributors list in the LICENSE file. 2011-06-18 06:11:21 -04:00
Justin D'Arcangelo
87fef70bbf Added font loading in the multi-page viewer. Added support for changing the zoom/scale factor. 2011-06-18 05:52:24 -04:00
Justin D'Arcangelo
5e3e567689 Added font loading in the multi-page viewer. Added support for changing the zoom/scale factor. 2011-06-18 05:52:24 -04:00
Justin D'Arcangelo
a9451a309f Added a new multi-page viewer that uses lazy loading to display pages in a scrolling manner. 2011-06-18 04:33:13 -04:00
Justin D'Arcangelo
c828fdd2ca Added a new multi-page viewer that uses lazy loading to display pages in a scrolling manner. 2011-06-18 04:33:13 -04:00
Andreas Gal
e9980c1558 remove toString code to avoid any future accidental implicit conversions 2011-06-18 01:18:21 -07:00
Andreas Gal
c04da11be6 remove toString code to avoid any future accidental implicit conversions 2011-06-18 01:18:21 -07:00
Andreas Gal
6dc697071e avoid toString conversion in lookup 2011-06-17 21:34:06 -07:00