Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text selection #738

Merged
merged 22 commits into from
Dec 1, 2011
Merged

Text selection #738

merged 22 commits into from
Dec 1, 2011

Conversation

arturadib
Copy link
Contributor

Presently works OK (not perfect) with TraceMonkey, ECMA262, and a few others.

Open viewer.html as usual to test it. Note that there's now a <div class="textLayer"> on top of our <canvas>.

To see what's happening "under the hood", change from color:transparent to color:blue in viewer.css: .textLayer > div. (Warning: it's not pretty, it's hacky :)).

It's hacky because we can't simply add one (absolutely-positioned) <div> or <span> per word to the DOM as that would be prohibitively slow and memory-consuming. So we need some heuristics to render one div per showSpacedText line, and to make that DOM width match the canvas text width (I've borrowed some ideas from Crocodoc).

Another hack is that because of this width matching, we need to call .offsetWidth for every <div> we're inserting - which is slow and locks the UI. So I'm rendering the text layer lazily using a combination of setTimeout and clearTimeout, so that we only render things when we have stopped loading pages for a while (currently 500 ms).

Known issues:

  • Apparently we're selecting glyphs and not characters, so sometimes things like fi are selected as a single character (try selecting e.g. the word "difficult" in the first line of tracemonkey.pdf)
  • Some characters display OK but are copied messed up (pdkids.pdf)
  • Some PDFs are not working at all (i9.pdf)

Help and feedback always welcome :)

UPDATE:

  • Not working on Chrome (due to use of mozCurrentTransform)
  • Now supports f1040.pdf
  • PDFs i9 and pdkids come out correct in the DOM text, but when copied to clipboard come out messed up. I suspect there's a problem with our font encoding. Perhaps after Changing how encoding and width detection is done #717 lands this will be fixed?

UPDATE 2 (after Yury's encoding patch)

  • Now supports i9.pdf
  • f1040 has lost/messed letter spacing information (presumably from font). Selection still works for full sentences (as the algorithm aligns beginning-ending of sentences at all costs), but it's awkward for words.

UPDATE 3 (after Yury's Unicode CMap patch)

  • Ligatures copy correctly, but still aren't split. We'll do some work on Unicode normalization to fix this and prepare for text search
  • pdkids is fixed

@vingtetun @brendandahl @notmasteryet @jviereck

@arturadib
Copy link
Contributor Author

Wow, this PR addresses one of the oldest issues we have (#10)! :)

@arturadib
Copy link
Contributor Author

The reason it's not working on Chrome is mozCurrentTransform (of course not available on Chrome), which is also used elsewhere in the code for shading and patterns.

Are we waiting for Chrome to support something like our mozCurrentTransform? Or is it already available under a different name?

@cgjones @vingtetun @notmasteryet

@joneschrisg
Copy link
Contributor

currentTransform isn't available in webkit/chrome yet. It just shipped in ff7 so we need to propose it to whatwg, when one of us has time.

textLayer.appendChild(textDivs[i]);
// Adjust div width (via letterSpacing) to match canvas text
// Due to the .offsetWidth calls, this is slow
textDivs[i].style.letterSpacing =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering, if we have to do this for all divs. It seems like the spacing values are very small (0.1...) and removing it makes the test go wrong a little bit, but it's not that much noticeable as long as the errors don't accumilate too much. Having a little bit wrong selection might be bettern then beging 100% correct but therefore a lot slower?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, the difference is sometimes enough for the highlight to "miss" a whole word. It might look weird for the end user that they're selecting a column of text and the highlight doesn't correspond to the words they want.

Incidentally, this "align-at-all-costs" hack fortuitously fixes the letter spacing in cases where the DOM-loaded font has missing/messed up spacing information (try commenting out the above line in f1040.pdf for example). This might be a bug in our font loader/decoder algo though, not sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to clarify: the slow call to .offsetWidth() is done lazily, so that it only fires up after the UI has settled on a given page. In my experience that seems to avoid the UI hiccups. Please let me know if you've noticed any UI performance hit.

@jviereck
Copy link
Contributor

I played around with this branch and it's quite impressive, how good this works. Artur mentioned all the things I had to "complain" about in the text on the pull request on top.

@arturadib, good work. There are some details I'm not sure if they are good the way they are right now, but I'm running little on time right now. Hope to take a closer look later.

@arturadib
Copy link
Contributor Author

@notmasteryet The encoding patch fixed i9.pdf, thanks!

Somehow however the font in f1040.pdf now seems to be loading with weird letter spacing info. For example, if you use the loaded font pdfFont2 and write a div element with it, the letters come out on top of each other.

Any ideas of what might be going on? Thanks!

@arturadib
Copy link
Contributor Author

@jviereck Hey thanks for taking a peek in here! Let me know if you have any other suggestions or comments.

@notmasteryet
Copy link
Contributor

In http://thefitdoc.com/page28/coaching/files/P90X%20Fit%20Test.pdf some text regions are displayed in wrong locations.

@brendandahl
Copy link
Contributor

In tracemonkey it seems all the ligatures are messed up. Are we hoping that the unicode stuff that Yury's is working will fix this?
Compilers for statically typed languages rely on type informa-
tion to generate efcient machine code.

So in terms of landing this what do we need to do?

  • get mozTransform stuff landed
  • figure out how to do the unicode translation stuff
    -....?

As far as search and text selection. I wonder if we should try and play around with making a super lightweight partial evaluator that will only emit text and all the location/size specifics. I'd be interested to see how poppler does text search.

Not really an important issue at the moment, but if you want a really fun one http://ruby-pdf.rubyforge.org/pdf-writer/demos/demo.pdf Could we perhaps support rotation by using the new css3 transform: rotation stuff?

@jviereck
Copy link
Contributor

Not really an important issue at the moment, but if you want a really fun one http://ruby-pdf.rubyforge.org/pdf-writer/demos/demo.pdf Could we perhaps support rotation by using the new css3 transform: rotation stuff?

Wasn't @digitarald working on making things CSS3 accelerated?

As far as search and text selection. I wonder if we should try and play around with making a super lightweight partial evaluator that will only emit text and all the location/size specifics. I'd be interested to see how poppler does text search.

Have you seen my comment here: #819 (comment), issue #819?

@notmasteryet
Copy link
Contributor

blocked by #829

@notmasteryet
Copy link
Contributor

blocked by #838

unicode normalization can be added when HTML markup is created

@arturadib
Copy link
Contributor Author

@pdfjsbot test

@pdfjsbot
Copy link

Processing command test by user arturadib. Queue size: 0

Live script output is available (after queueing is done) at: http://184.73.87.52:8989/2946257.txt

[bot:processed:2946257]

@pdfjsbot
Copy link

ERROR(s) found

Output:

========== Killing any stray processes

========== Running garbage collector in /home/ubuntu/pdf.js-bot/tmp
Collecting garbage...

========== Cloning pull request repo
Cloning into ....

========== Merging upstream into pull request clone

========== Running 'make lint'
gjslint --nojsdoc  src/canvas.js src/charsets.js src/cidmaps.js src/colorspace.js src/core.js src/crypto.js src/evaluator.js src/fonts.js src/function.js src/glyphlist.js src/image.js src/metrics.js src/obj.js src/parser.js src/pattern.js src/pdf.js src/stream.js src/util.js src/worker.js src/worker_loader.js  web/compatibility.js web/viewer.js test/driver.js examples/helloworld/hello.js extensions/firefox/bootstrap.js extensions/firefox/components/pdfContentHandler.js 
----- FILE  :  /home/ubuntu/pdf.js-bot/tmp/tests/6a747c4353887c0fab14aa95c46853ee44d42818/src/canvas.js -----
Line 283, E:0001: Extra space at end of line
Line 286, E:0002: Missing space before ">"
Line 286, E:0002: Missing space after ">"
Line 292, E:0120: Binary operator should go on previous line "-"
Line 292, E:0002: Missing space before "/"
Line 292, E:0002: Missing space after "/"
Line 292, E:0002: Missing space before "-"
Line 292, E:0002: Missing space after "-"
Line 293, E:0120: Binary operator should go on previous line "+"
Line 295, E:0001: Extra space at end of line
Line 299, E:0001: Extra space at end of line
Line 303, E:0002: Missing space before "{"
Line 305, E:0002: Missing space before "="
Line 305, E:0002: Missing space after "="
Line 305, E:0002: Missing space before "-"
Line 305, E:0002: Missing space after "-"
Line 305, E:0002: Missing space before ">="
Line 305, E:0002: Missing space after ">="
Line 599, E:0001: Extra space after "["
Line 599, E:0002: Missing space after ":"
Line 599, E:0001: Extra space before "]"
Line 632, E:0002: Missing space after ":"
Line 632, E:0002: Missing space after ":"
Line 632, E:0002: Missing space after ":"
Line 632, E:0002: Missing space after ":"
Line 641, E:0001: Extra space at end of line
Line 692, E:0001: Extra space at end of line
Line 702, E:0001: Extra space at end of line
Line 715, E:0002: Missing space after ":"
Line 715, E:0002: Missing space after ":"
Line 715, E:0002: Missing space after ":"
Line 715, E:0002: Missing space after ":"
Line 724, E:0001: Extra space at end of line
Line 734, E:0002: Missing space before "<"
Line 734, E:0002: Missing space after "<"
Line 734, E:0002: Missing space before ">"
Line 734, E:0002: Missing space after ">"
Line 738, E:0002: Missing space before ">"
Line 738, E:0002: Missing space after ">"
Line 757, E:0001: Extra space at end of line
Line 758, E:0001: Extra space at end of line

Found 41 errors, including 0 new errors, in 1 files (25 files OK).
�
Some of the errors reported by GJsLint may be auto-fixable using the script
fixjsstyle. Please double check any changes it makes and report any bugs. The
script can be run by executing:

fixjsstyle --nojsdoc src/canvas.js src/charsets.js src/cidmaps.js src/colorspace.js src/core.js src/crypto.js src/evaluator.js src/fonts.js src/function.js src/glyphlist.js src/image.js src/metrics.js src/obj.js src/parser.js src/pattern.js src/pdf.js src/stream.js src/util.js src/worker.js src/worker_loader.js web/compatibility.js web/viewer.js test/driver.js examples/helloworld/hello.js extensions/firefox/bootstrap.js extensions/firefox/components/pdfContentHandler.js 
make: *** [lint] Error 1

========== Cloning reference images repo into test/ref/
Initialized empty Git repository in /home/ubuntu/pdf.js-bot/tmp/tests/6a747c4353887c0fab14aa95c46853ee44d42818/test/ref/.git/

========== Checking for consistency with reference repo

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: Could not find commit that generated reference images in history.
         Someone must have forgotten to merge a reference pull request into
         upstream.
         If the tests all pass, that should be OK though.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Commit used to create snapshots (REF-INFO file from reference repo):
url https://github.com/arturadib/pdf.js
sha fe5aa4af3f36f570b7a10160eabb47bec630be4e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

========== Running 'make bot_test'
Xvfb: no process found
cd test; \
    python -u test.py \
    --browserManifestFile=resources/browser_manifests/browser_manifest.json \
    --manifestFile=test_manifest.json
WARNING: MD5 of file "pdfs/intelisa.pdf" does not match file. Expected "f3ed5487d1afa34d8b77c0c734a95c79" computed "f5712097d29287a97f1278839814f682"
Unable to verify the checksum for the files that are used for testing.
Please re-download the files, or adjust the MD5 checksum in the manifest for the files listed above.

Launching firefox
failed to create drawable
Xlib:  extension "RANDR" missing on display ":1".
TEST-PASS | eq test tracemonkey-eq | in firefox
TEST-PASS | forward-back-forward test tracemonkey-fbf | in firefox
TEST-PASS | load test html5-canvas-cheat-sheet-load | in firefox
TEST-PASS | load test intelisa-load | in firefox
TEST-PASS | load test pdfspec-load | in firefox
TEST-PASS | load test shavian-load | in firefox
TEST-PASS | eq test sizes | in firefox
TEST-PASS | eq test plusminus | in firefox
TEST-PASS | load test openoffice-pdf | in firefox
TEST-PASS | load test openofficecidtruetype-pdf | in firefox
TEST-PASS | load test openofficearabiccidtruetype-pdf | in firefox
TEST-PASS | load test arabiccidtruetype-pdf | in firefox
TEST-PASS | load test complexttffont-pdf | in firefox
TEST-PASS | eq test thuluthfont-pdf | in firefox
TEST-PASS | eq test wnv_chinese-pdf | in firefox
TEST-PASS | eq test i9-pdf | in firefox
TEST-PASS | load test hmm-pdf | in firefox
TEST-PASS | eq test rotation | in firefox
TEST-PASS | load test ecma262-pdf | in firefox
TEST-PASS | load test jai-pdf | in firefox
TEST-PASS | eq test cable | in firefox
TEST-PASS | eq test pdkids | in firefox
TEST-PASS | eq test artofwar | in firefox
TEST-PASS | eq test wdsg_fitc | in firefox
TEST-PASS | eq test unix01 | in firefox
TEST-PASS | eq test fit11-talk | in firefox
TEST-PASS | eq test fips197 | in firefox
TEST-PASS | load test txt2pdf | in firefox
TEST-PASS | load test f1040 | in firefox
TEST-PASS | load test hudsonsurvey | in firefox
TEST-PASS | eq test extgstate | in firefox
TEST-PASS | eq test usmanm-bad | in firefox
TEST-PASS | load test vesta-bad | in firefox
TEST-PASS | load test ibwa-bad | in firefox
TEST-PASS | eq test tcpdf_033 | in firefox
TEST-PASS | eq test pal-o47 | in firefox
TEST-PASS | eq test simpletype3font | in firefox
TEST-PASS | eq test close-path-bug | in firefox
TEST-PASS | eq test alphatrans | in firefox
TEST-PASS | eq test devicen | in firefox
TEST-PASS | eq test cmykjpeg | in firefox

All tests passed.
Process firefox is still running. Killing.
Runtime was 1525 seconds

========== Cleaning up
./run-test: line 206: 15101 Killed                  Xvfb :1 -screen 0 1280x1024x24 > /dev/null 2> /dev/null

All done.


_____________________________ stderr:

Bot response time: 26.31 mins

@arturadib
Copy link
Contributor Author

@pdfjsbot test

@pdfjsbot
Copy link

Processing command test by user arturadib. Queue size: 0

Live script output is available (after queueing is done) at: http://184.73.87.52:8989/2948602.txt

[bot:processed:2948602]

@pdfjsbot
Copy link

All tests passed, but with WARNING(s).

Make sure to read them! :).

Output:

========== Killing any stray processes

========== Running garbage collector in /home/ubuntu/pdf.js-bot/tmp
Collecting garbage...

========== Cloning pull request repo
Cloning into ....

========== Merging upstream into pull request clone

========== Running 'make lint'
gjslint --nojsdoc  src/canvas.js src/charsets.js src/cidmaps.js src/colorspace.js src/core.js src/crypto.js src/evaluator.js src/fonts.js src/function.js src/glyphlist.js src/image.js src/metrics.js src/obj.js src/parser.js src/pattern.js src/pdf.js src/stream.js src/util.js src/worker.js src/worker_loader.js  web/compatibility.js web/viewer.js test/driver.js examples/helloworld/hello.js extensions/firefox/bootstrap.js extensions/firefox/components/pdfContentHandler.js 
26 files checked, no errors found.

========== Cloning reference images repo into test/ref/
Initialized empty Git repository in /home/ubuntu/pdf.js-bot/tmp/tests/e2e2240a227f2a838a4fee9481587d668d57747d/test/ref/.git/

========== Checking for consistency with reference repo

========== Running 'make bot_test'
Xvfb: no process found
cd test; \
    python -u test.py \
    --browserManifestFile=resources/browser_manifests/browser_manifest.json \
    --manifestFile=test_manifest.json
WARNING: MD5 of file "pdfs/intelisa.pdf" does not match file. Expected "f3ed5487d1afa34d8b77c0c734a95c79" computed "f5712097d29287a97f1278839814f682"
Unable to verify the checksum for the files that are used for testing.
Please re-download the files, or adjust the MD5 checksum in the manifest for the files listed above.

Launching firefox
Xlib:  extension "RANDR" missing on display ":1".
failed to create drawable
TEST-PASS | eq test tracemonkey-eq | in firefox
TEST-PASS | forward-back-forward test tracemonkey-fbf | in firefox
TEST-PASS | load test html5-canvas-cheat-sheet-load | in firefox
TEST-PASS | load test intelisa-load | in firefox
TEST-PASS | load test pdfspec-load | in firefox
TEST-PASS | load test shavian-load | in firefox
TEST-PASS | eq test sizes | in firefox
TEST-PASS | eq test plusminus | in firefox
TEST-PASS | load test openoffice-pdf | in firefox
TEST-PASS | load test openofficecidtruetype-pdf | in firefox
TEST-PASS | load test openofficearabiccidtruetype-pdf | in firefox
TEST-PASS | load test arabiccidtruetype-pdf | in firefox
TEST-PASS | load test complexttffont-pdf | in firefox
TEST-PASS | eq test thuluthfont-pdf | in firefox
TEST-PASS | eq test wnv_chinese-pdf | in firefox
TEST-PASS | eq test i9-pdf | in firefox
TEST-PASS | load test hmm-pdf | in firefox
TEST-PASS | eq test rotation | in firefox
TEST-PASS | load test ecma262-pdf | in firefox
TEST-PASS | load test jai-pdf | in firefox
TEST-PASS | eq test cable | in firefox
TEST-PASS | eq test pdkids | in firefox
TEST-PASS | eq test artofwar | in firefox
TEST-PASS | eq test wdsg_fitc | in firefox
TEST-PASS | eq test unix01 | in firefox
TEST-PASS | eq test fit11-talk | in firefox
TEST-PASS | eq test fips197 | in firefox
TEST-PASS | load test txt2pdf | in firefox
TEST-PASS | load test f1040 | in firefox
TEST-PASS | load test hudsonsurvey | in firefox
TEST-PASS | eq test extgstate | in firefox
TEST-PASS | eq test usmanm-bad | in firefox
TEST-PASS | load test vesta-bad | in firefox
TEST-PASS | load test ibwa-bad | in firefox
TEST-PASS | eq test tcpdf_033 | in firefox
TEST-PASS | eq test pal-o47 | in firefox
TEST-PASS | eq test simpletype3font | in firefox
TEST-PASS | eq test close-path-bug | in firefox
TEST-PASS | eq test alphatrans | in firefox
TEST-PASS | eq test devicen | in firefox
TEST-PASS | eq test cmykjpeg | in firefox

All tests passed.
Process firefox is still running. Killing.
Runtime was 1513 seconds

========== Cleaning up
./run-test: line 206: 15329 Killed                  Xvfb :1 -screen 0 1280x1024x24 > /dev/null 2> /dev/null

All done.


_____________________________ stderr:

Bot response time: 26.09 mins


// TODO actual characters can be extracted from the glyph.unicode
text.str += char === ' ' ? '&nbsp;' : char;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is glyph.unicode not working?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

          var unicodeText = glyph.unicode;
          text.str += unicodeText === ' ' ? '&nbsp;' : unicodeText;

Will make selection work for http://unicode.org/charts/PDF/U0C80.pdf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, forgot about that, thanks!

@arturadib
Copy link
Contributor Author

I'm not perfectly happy with the UI performance. Opening #858 for future improvements, but for now this should be good.

@pdfjsbot test

@pdfjsbot
Copy link

pdfjsbot commented Dec 1, 2011

Processing command test by user arturadib. Queue size: 0

Live script output is available (after queueing is done) at: http://184.73.87.52:8989/2976621.txt

[bot:processed:2976621]

@pdfjsbot
Copy link

pdfjsbot commented Dec 1, 2011

All tests passed, but with WARNING(s).

Make sure to read them! :).

Output:

========== Killing any stray processes

========== Running garbage collector in /home/ubuntu/pdf.js-bot/tmp
Collecting garbage...

========== Cloning pull request repo
Cloning into ....

========== Merging upstream into pull request clone

========== Running 'make lint'
gjslint --nojsdoc  src/canvas.js src/charsets.js src/cidmaps.js src/colorspace.js src/core.js src/crypto.js src/evaluator.js src/fonts.js src/function.js src/glyphlist.js src/image.js src/metrics.js src/obj.js src/parser.js src/pattern.js src/pdf.js src/stream.js src/util.js src/worker.js src/worker_loader.js  web/compatibility.js web/viewer.js test/driver.js examples/helloworld/hello.js extensions/firefox/bootstrap.js extensions/firefox/components/pdfContentHandler.js 
26 files checked, no errors found.

========== Cloning reference images repo into test/ref/
Initialized empty Git repository in /home/ubuntu/pdf.js-bot/tmp/tests/5e1d78ef20a169a3475f33b330fca503bd8df66f/test/ref/.git/

========== Checking for consistency with reference repo

========== Running 'make bot_test'
Xvfb: no process found
cd test; \
    python -u test.py \
    --browserManifestFile=resources/browser_manifests/browser_manifest.json \
    --manifestFile=test_manifest.json
WARNING: MD5 of file "pdfs/intelisa.pdf" does not match file. Expected "f3ed5487d1afa34d8b77c0c734a95c79" computed "f5712097d29287a97f1278839814f682"
Unable to verify the checksum for the files that are used for testing.
Please re-download the files, or adjust the MD5 checksum in the manifest for the files listed above.

Launching firefox
failed to create drawable
Xlib:  extension "RANDR" missing on display ":1".
TEST-PASS | eq test tracemonkey-eq | in firefox
TEST-PASS | forward-back-forward test tracemonkey-fbf | in firefox
TEST-PASS | load test html5-canvas-cheat-sheet-load | in firefox
TEST-PASS | load test intelisa-load | in firefox
TEST-PASS | load test pdfspec-load | in firefox
TEST-PASS | load test shavian-load | in firefox
TEST-PASS | eq test sizes | in firefox
TEST-PASS | eq test plusminus | in firefox
TEST-PASS | load test openoffice-pdf | in firefox
TEST-PASS | load test openofficecidtruetype-pdf | in firefox
TEST-PASS | load test openofficearabiccidtruetype-pdf | in firefox
TEST-PASS | load test arabiccidtruetype-pdf | in firefox
TEST-PASS | load test complexttffont-pdf | in firefox
TEST-PASS | eq test thuluthfont-pdf | in firefox
TEST-PASS | eq test wnv_chinese-pdf | in firefox
TEST-PASS | eq test i9-pdf | in firefox
TEST-PASS | load test hmm-pdf | in firefox
TEST-PASS | eq test rotation | in firefox
TEST-PASS | load test ecma262-pdf | in firefox
TEST-PASS | load test jai-pdf | in firefox
TEST-PASS | eq test cable | in firefox
TEST-PASS | eq test pdkids | in firefox
TEST-PASS | eq test artofwar | in firefox
TEST-PASS | eq test wdsg_fitc | in firefox
TEST-PASS | eq test unix01 | in firefox
TEST-PASS | eq test fit11-talk | in firefox
TEST-PASS | eq test fips197 | in firefox
TEST-PASS | load test txt2pdf | in firefox
TEST-PASS | load test f1040 | in firefox
TEST-PASS | load test hudsonsurvey | in firefox
TEST-PASS | eq test extgstate | in firefox
TEST-PASS | eq test usmanm-bad | in firefox
TEST-PASS | load test vesta-bad | in firefox
TEST-PASS | load test ibwa-bad | in firefox
TEST-PASS | eq test tcpdf_033 | in firefox
TEST-PASS | eq test pal-o47 | in firefox
TEST-PASS | eq test simpletype3font | in firefox
TEST-PASS | eq test close-path-bug | in firefox
TEST-PASS | eq test alphatrans | in firefox
TEST-PASS | eq test devicen | in firefox
TEST-PASS | eq test cmykjpeg | in firefox
TEST-PASS | eq test protectip | in firefox
WARNING: no reference snapshot ref/linux2/firefox/piperine/1
WARNING: no reference snapshot ref/linux2/firefox/piperine/2
WARNING: no reference snapshot ref/linux2/firefox/piperine/3
WARNING: no reference snapshot ref/linux2/firefox/piperine/4
TEST-PASS | eq test piperine | in firefox

All tests passed.
Process firefox is still running. Killing.
Runtime was 1544 seconds

========== Cleaning up
./run-test: line 206: 18826 Killed                  Xvfb :1 -screen 0 1280x1024x24 > /dev/null 2> /dev/null

All done.


_____________________________ stderr:

Bot response time: 26.62 mins

@@ -269,7 +275,37 @@ var CanvasGraphics = (function canvasGraphics() {
},

endDrawing: function canvasGraphicsEndDrawing() {
var self = this;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Declare it next to where it is used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@arturadib
Copy link
Contributor Author

@pdfjsbot test

@pdfjsbot
Copy link

pdfjsbot commented Dec 1, 2011

Processing command test by user arturadib. Queue size: 0

Live script output is available (after queueing is done) at: http://184.73.87.52:8989/2979094.txt

[bot:processed:2979094]

@pdfjsbot
Copy link

pdfjsbot commented Dec 1, 2011

All tests passed, but with WARNING(s).

Make sure to read them! :).

Output:

========== Killing any stray processes

========== Running garbage collector in /home/ubuntu/pdf.js-bot/tmp
Collecting garbage...

========== Cloning pull request repo
Cloning into ....

========== Merging upstream into pull request clone

========== Running 'make lint'
gjslint --nojsdoc  src/canvas.js src/charsets.js src/cidmaps.js src/colorspace.js src/core.js src/crypto.js src/evaluator.js src/fonts.js src/function.js src/glyphlist.js src/image.js src/metrics.js src/obj.js src/parser.js src/pattern.js src/pdf.js src/stream.js src/util.js src/worker.js src/worker_loader.js  web/compatibility.js web/viewer.js test/driver.js examples/helloworld/hello.js extensions/firefox/bootstrap.js extensions/firefox/components/pdfContentHandler.js 
26 files checked, no errors found.

========== Cloning reference images repo into test/ref/
Initialized empty Git repository in /home/ubuntu/pdf.js-bot/tmp/tests/705356fa41ef226844ab0150059655d59e9d41b4/test/ref/.git/

========== Checking for consistency with reference repo

========== Running 'make bot_test'
Xvfb: no process found
cd test; \
    python -u test.py \
    --browserManifestFile=resources/browser_manifests/browser_manifest.json \
    --manifestFile=test_manifest.json
WARNING: MD5 of file "pdfs/intelisa.pdf" does not match file. Expected "f3ed5487d1afa34d8b77c0c734a95c79" computed "f5712097d29287a97f1278839814f682"
Unable to verify the checksum for the files that are used for testing.
Please re-download the files, or adjust the MD5 checksum in the manifest for the files listed above.

Launching firefox
failed to create drawable
Xlib:  extension "RANDR" missing on display ":1".
TEST-PASS | eq test tracemonkey-eq | in firefox
TEST-PASS | forward-back-forward test tracemonkey-fbf | in firefox
TEST-PASS | load test html5-canvas-cheat-sheet-load | in firefox
TEST-PASS | load test intelisa-load | in firefox
TEST-PASS | load test pdfspec-load | in firefox
TEST-PASS | load test shavian-load | in firefox
TEST-PASS | eq test sizes | in firefox
TEST-PASS | eq test plusminus | in firefox
TEST-PASS | load test openoffice-pdf | in firefox
TEST-PASS | load test openofficecidtruetype-pdf | in firefox
TEST-PASS | load test openofficearabiccidtruetype-pdf | in firefox
TEST-PASS | load test arabiccidtruetype-pdf | in firefox
TEST-PASS | load test complexttffont-pdf | in firefox
TEST-PASS | eq test thuluthfont-pdf | in firefox
TEST-PASS | eq test wnv_chinese-pdf | in firefox
TEST-PASS | eq test i9-pdf | in firefox
TEST-PASS | load test hmm-pdf | in firefox
TEST-PASS | eq test rotation | in firefox
TEST-PASS | load test ecma262-pdf | in firefox
TEST-PASS | load test jai-pdf | in firefox
TEST-PASS | eq test cable | in firefox
TEST-PASS | eq test pdkids | in firefox
TEST-PASS | eq test artofwar | in firefox
TEST-PASS | eq test wdsg_fitc | in firefox
TEST-PASS | eq test unix01 | in firefox
TEST-PASS | eq test fit11-talk | in firefox
TEST-PASS | eq test fips197 | in firefox
TEST-PASS | load test txt2pdf | in firefox
TEST-PASS | load test f1040 | in firefox
TEST-PASS | load test hudsonsurvey | in firefox
TEST-PASS | eq test extgstate | in firefox
TEST-PASS | eq test usmanm-bad | in firefox
TEST-PASS | load test vesta-bad | in firefox
TEST-PASS | load test ibwa-bad | in firefox
TEST-PASS | eq test tcpdf_033 | in firefox
TEST-PASS | eq test pal-o47 | in firefox
TEST-PASS | eq test simpletype3font | in firefox
TEST-PASS | eq test close-path-bug | in firefox
TEST-PASS | eq test alphatrans | in firefox
TEST-PASS | eq test devicen | in firefox
TEST-PASS | eq test cmykjpeg | in firefox
TEST-PASS | eq test protectip | in firefox
WARNING: no reference snapshot ref/linux2/firefox/piperine/1
WARNING: no reference snapshot ref/linux2/firefox/piperine/2
WARNING: no reference snapshot ref/linux2/firefox/piperine/3
WARNING: no reference snapshot ref/linux2/firefox/piperine/4
TEST-PASS | eq test piperine | in firefox

All tests passed.
Process firefox is still running. Killing.
Runtime was 1545 seconds

========== Cleaning up
./run-test: line 206: 19139 Killed                  Xvfb :1 -screen 0 1280x1024x24 > /dev/null 2> /dev/null

All done.


_____________________________ stderr:

Bot response time: 26.74 mins

brendandahl added a commit that referenced this pull request Dec 1, 2011
@brendandahl brendandahl merged commit b958fd4 into mozilla:master Dec 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants