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

Issue 211493008: Make DistillerPageWebContentsTest a real test that uses the distiller. (Closed)

Created:
6 years, 9 months ago by Yaron
Modified:
6 years, 8 months ago
Reviewers:
cjhopman, kuan, blundell
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, nyquist, cjhopman
Visibility:
Public.

Description

Make DistillerPageWebContentsTest a real test that uses the distiller. Previously, the test used a hardcoded distiller template which didn't help test the distiller. Updates the test to use the real distiller and adds tests for relativization of images and anchors. In the process, attempts to handle a few failure modes of the distiller. BUG=353349, 354737 TBR=blundell Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261463

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -42 lines) Patch
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/content/distiller_page_web_contents_browsertest.cc View 1 2 4 chunks +93 lines, -31 lines 0 comments Download
M components/dom_distiller/core/javascript/domdistiller.js View 1 2 2 chunks +11 lines, -9 lines 0 comments Download
M components/dom_distiller/core/page_distiller.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
A components/test/data/dom_distiller/simple_article.html View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Yaron
I think I'll still add a few more tests (e.g. page that fails distillation entirely) ...
6 years, 9 months ago (2014-03-26 02:29:37 UTC) #1
kuan
https://codereview.chromium.org/211493008/diff/1/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc File components/dom_distiller/content/distiller_page_web_contents_browsertest.cc (right): https://codereview.chromium.org/211493008/diff/1/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc#newcode46 components/dom_distiller/content/distiller_page_web_contents_browsertest.cc:46: .as_string(); i think according to styling guidelines, '.' should ...
6 years, 9 months ago (2014-03-26 13:07:48 UTC) #2
kuan
oh, i forgot. it's lgtm if u're not adding anymore tests in this cl.
6 years, 9 months ago (2014-03-26 16:48:23 UTC) #3
Yaron
Thanks. Actually, I realized that handling a complete failure would be a page_distiller test so ...
6 years, 9 months ago (2014-03-26 17:31:50 UTC) #4
blundell
components_tests.gyp LGTM
6 years, 9 months ago (2014-03-26 21:00:00 UTC) #5
cjhopman
lgtm https://codereview.chromium.org/211493008/diff/1/components/dom_distiller/core/page_distiller.cc File components/dom_distiller/core/page_distiller.cc (right): https://codereview.chromium.org/211493008/diff/1/components/dom_distiller/core/page_distiller.cc#newcode97 components/dom_distiller/core/page_distiller.cc:97: if (!unvalidated_gurl.is_empty() && unvalidated_gurl.is_valid()) { On 2014/03/26 17:31:50, ...
6 years, 9 months ago (2014-03-27 00:22:39 UTC) #6
Yaron
https://codereview.chromium.org/211493008/diff/1/components/dom_distiller/core/page_distiller.cc File components/dom_distiller/core/page_distiller.cc (right): https://codereview.chromium.org/211493008/diff/1/components/dom_distiller/core/page_distiller.cc#newcode97 components/dom_distiller/core/page_distiller.cc:97: if (!unvalidated_gurl.is_empty() && unvalidated_gurl.is_valid()) { On 2014/03/27 00:22:39, cjhopman ...
6 years, 8 months ago (2014-04-02 17:11:58 UTC) #7
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 8 months ago (2014-04-02 17:12:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/211493008/80001
6 years, 8 months ago (2014-04-02 17:13:24 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 17:19:36 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-02 17:19:37 UTC) #11
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 8 months ago (2014-04-02 20:38:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/211493008/80001
6 years, 8 months ago (2014-04-02 20:39:39 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 20:48:04 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-02 20:48:04 UTC) #15
Yaron
The CQ bit was checked by yfriedman@chromium.org
6 years, 8 months ago (2014-04-03 16:03:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yfriedman@chromium.org/211493008/80001
6 years, 8 months ago (2014-04-03 16:06:52 UTC) #17
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 17:26:16 UTC) #18
Message was sent while issue was closed.
Change committed as 261463

Powered by Google App Engine
This is Rietveld 408576698