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

Issue 1057983003: Refactor PDFium python test utilities. (Closed)

Created:
5 years, 8 months ago by Tom Sepez
Modified:
5 years, 8 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Refactor PDFium python test utilities. Extract a common portions for determining suppressions and comparing pngs. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/6ce87f3e283a2cf44cacbcea7f0dc72633682b5b

Patch Set 1 #

Patch Set 2 : Line wrap. #

Total comments: 10

Patch Set 3 : Reduce caller's burden #

Patch Set 4 : Add common module, refactor the refactor. #

Patch Set 5 : Tidy. #

Total comments: 6

Patch Set 6 : Fix nits. #

Patch Set 7 : Fix imports in one more file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -209 lines) Patch
A testing/tools/common.py View 1 2 3 4 5 1 chunk +70 lines, -0 lines 0 comments Download
A testing/tools/pngdiffer.py View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M testing/tools/run_corpus_tests.py View 1 2 3 4 5 1 chunk +16 lines, -83 lines 0 comments Download
M testing/tools/run_javascript_tests.py View 1 2 3 4 5 6 2 chunks +8 lines, -40 lines 0 comments Download
M testing/tools/run_pixel_tests.py View 1 2 3 4 5 2 chunks +17 lines, -86 lines 0 comments Download
A testing/tools/suppressor.py View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Tom Sepez
Lei, please review.
5 years, 8 months ago (2015-04-02 20:42:58 UTC) #2
Lei Zhang
https://codereview.chromium.org/1057983003/diff/20001/testing/tools/pngdiffer.py File testing/tools/pngdiffer.py (right): https://codereview.chromium.org/1057983003/diff/20001/testing/tools/pngdiffer.py#newcode13 testing/tools/pngdiffer.py:13: self.actual_template = '.pdf.%d.png' this can be a class constant ...
5 years, 8 months ago (2015-04-02 23:16:20 UTC) #3
Tom Sepez
Lei, please re-review. I put much of the directory work into a new class in ...
5 years, 8 months ago (2015-04-03 18:13:15 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/1057983003/diff/80001/testing/tools/common.py File testing/tools/common.py (right): https://codereview.chromium.org/1057983003/diff/80001/testing/tools/common.py#newcode23 testing/tools/common.py:23: def __init__(self, build_type): You may want to add ...
5 years, 8 months ago (2015-04-03 19:50:27 UTC) #5
Tom Sepez
https://codereview.chromium.org/1057983003/diff/80001/testing/tools/common.py File testing/tools/common.py (right): https://codereview.chromium.org/1057983003/diff/80001/testing/tools/common.py#newcode23 testing/tools/common.py:23: def __init__(self, build_type): On 2015/04/03 19:50:27, Lei Zhang wrote: ...
5 years, 8 months ago (2015-04-03 20:19:51 UTC) #6
Tom Sepez
5 years, 8 months ago (2015-04-03 20:21:59 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
6ce87f3e283a2cf44cacbcea7f0dc72633682b5b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698