Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Issue 2239713003: Add 'hidden' annotations tests (Closed)

Created:
4 years, 4 months ago by tonikitoo
Modified:
4 years, 4 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium_tests@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add 'hidden' annotations tests CL adds "hidden annotation" variants to the existing annotation tests in (pdfium/annots/): - annotation_circle_hidden.pdf - annotation_ellipse_hidden.pdf - annotation_highlight_hidden.pdf - annotation_ink_hidden.pdf - annotation_square_hidden.pdf - annotation_squiggly_hidden.pdf - annotation_strikeout_hidden.pdf - annotation_underline_hidden.pdf (fx/mulobj/new/text_markup/): - new_textmarkup1_hidden.pdf - new_textmarkup2_hidden.pdf - new_textmarkup4_hidden.pdf - new_textmarkup5_hidden.pdf - new_textmarkup7_hidden.pdf - new_textmarkup8_hidden.pdf This is how each pdf test being added was generated: 1) uncompressed the PDF file with qpdf: $ qpdf --stream-data=uncompress {pdf_file}.pdf {pdf_file}_hidden.pdf 2) editted {pdf_file}_hidden.pdf source manually changing its "/F 4" entry to "/F 2". 3) compress {pdf_file}_hidden.pdf back with qpdf: $ qpdf --stream-data=compress {pdf_file}_hidden.pdf {pdf_file}_hidden.pdf Also, note that each PDF file added is accompanied of its own *correct* expected result (png). The behavior fix on PDFium side is happening in [1]. [1] https://codereview.chromium.org/2239853002

Patch Set 1 #

Patch Set 2 : Add 'hidden' annotations tests pdfium/annots/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -0 lines) Patch
A fx/mulobj/new/text_markup/new_textmarkup1_hidden.pdf View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup1_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup2_hidden.pdf View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup2_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup4_hidden.pdf View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup4_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup5_hidden.pdf View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup5_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup7_hidden.pdf View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup7_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup8_hidden.pdf View 1 Binary file 0 comments Download
A fx/mulobj/new/text_markup/new_textmarkup8_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_circle_hidden.pdf View Binary file 0 comments Download
A + pdfium/annots/annotation_circle_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_ellipse_hidden.pdf View Binary file 0 comments Download
A + pdfium/annots/annotation_ellipse_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_highlight_hidden.pdf View Binary file 0 comments Download
A + pdfium/annots/annotation_highlight_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_ink_hidden.pdf View Binary file 0 comments Download
A + pdfium/annots/annotation_ink_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_square_hidden.pdf View Binary file 0 comments Download
A + pdfium/annots/annotation_square_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_squiggly_hidden.pdf View Binary file 0 comments Download
A + pdfium/annots/annotation_squiggly_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_strikeout_hidden.pdf View Binary file 0 comments Download
A + pdfium/annots/annotation_strikeout_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download
A + pdfium/annots/annotation_underline_hidden.pdf View Binary file 0 comments Download
A pdfium/annots/annotation_underline_hidden_expected.pdf.0.png View 1 Binary file 0 comments Download

Messages

Total messages: 17 (6 generated)
tonikitoo
PTAL (implementation fix is happening in https://codereview.chromium.org/2239853002/)
4 years, 4 months ago (2016-08-11 21:13:01 UTC) #2
tonikitoo
4 years, 4 months ago (2016-08-11 21:21:22 UTC) #4
Tom Sepez
On 2016/08/11 21:21:22, tonikitoo1 wrote: Thanks, tests always welcome. These should live in testing/resources/pixel/ or ...
4 years, 4 months ago (2016-08-11 21:31:39 UTC) #5
tonikitoo
On 2016/08/11 21:31:39, Tom Sepez wrote: > On 2016/08/11 21:21:22, tonikitoo1 wrote: > > Thanks, ...
4 years, 4 months ago (2016-08-12 04:51:56 UTC) #6
Tom Sepez
On 2016/08/12 04:51:56, tonikitoo1 wrote: > On 2016/08/11 21:31:39, Tom Sepez wrote: > > On ...
4 years, 4 months ago (2016-08-12 15:26:10 UTC) #7
tonikitoo
Patchset 2 adds PDF files/tests with hidden AP annotations.
4 years, 4 months ago (2016-08-13 15:42:01 UTC) #11
Tom Sepez
On 2016/08/13 15:42:01, tonikitoo1 wrote: > Patchset 2 adds PDF files/tests with hidden AP annotations. ...
4 years, 4 months ago (2016-08-15 16:48:24 UTC) #13
tonikitoo
On 2016/08/15 16:48:24, Tom Sepez wrote: > On 2016/08/13 15:42:01, tonikitoo1 wrote: > > Patchset ...
4 years, 4 months ago (2016-08-15 17:49:38 UTC) #14
jaepark
On 2016/08/15 17:49:38, tonikitoo1 wrote: > Thanks. I believe a good coordinated way going forward ...
4 years, 4 months ago (2016-08-15 18:33:56 UTC) #15
Lei Zhang
jaepark will land this in https://codereview.chromium.org/2250543003/
4 years, 4 months ago (2016-08-16 02:09:50 UTC) #16
tonikitoo
4 years, 4 months ago (2016-08-16 15:00:39 UTC) #17
On 2016/08/16 02:09:50, Lei Zhang wrote:
> jaepark will land this in https://codereview.chromium.org/2250543003/

Ok closing here.

Powered by Google App Engine
This is Rietveld 408576698