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

Issue 2866873002: Validate generated MHTML in mhtml_generation_browsertest.cc tests. (Closed)

Created:
3 years, 7 months ago by carlosk
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews, jam, David Trainor- moved to gerrit, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Validate generated MHTML in mhtml_generation_browsertest.cc tests. Attempts to load the generated MHTML file after creating it for all tests in mhtml_generation_browsertest.cc. This allows for validation of its contents being well formed by verifying that the newly added console message is not reported. Also simplifies the checking for the MHTML generation succeeding by asserting from inside the generation call instead of having checks for test failure in multiple tests. BUG=672313 Review-Url: https://codereview.chromium.org/2866873002 Cr-Commit-Position: refs/heads/master@{#472939} Committed: https://chromium.googlesource.com/chromium/src/+/656b9cae0b536ee2f9b8a2777f76ba4a4d775173

Patch Set 1 #

Total comments: 8

Patch Set 2 : Moved console logging to ResourceFetcher; new layout test; updates. #

Patch Set 3 : Removed empty line. #

Patch Set 4 : Fixed MHTMLGenerationTest errors. #

Total comments: 2

Patch Set 5 : Textual changes. #

Patch Set 6 : Fixed layout test expectation. #

Messages

Total messages: 37 (20 generated)
carlosk
lukasza@, nasko@: PTAL. https://codereview.chromium.org/2866873002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2866873002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode444 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:444: CommitData(0, 0); IIUC the local frame ...
3 years, 7 months ago (2017-05-05 23:46:27 UTC) #4
Łukasz Anforowicz
Thanks for tackling this - I think this (verifying in browser tests by looking out ...
3 years, 7 months ago (2017-05-06 00:14:49 UTC) #5
Łukasz Anforowicz
https://codereview.chromium.org/2866873002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2866873002/diff/1/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode450 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:450: "Malformed multipart archive: " + response_.Url().ElidedString())); On 2017/05/06 00:14:48, ...
3 years, 7 months ago (2017-05-06 00:42:47 UTC) #6
nasko
I'd defer this review to lukasza@ and am happy to stamp it once he is ...
3 years, 7 months ago (2017-05-08 17:16:58 UTC) #9
carlosk
Thanks. The mhtml_in_iframe.html layout test showed an inconsistency with the solution: the log was reporting ...
3 years, 7 months ago (2017-05-16 20:56:08 UTC) #12
Łukasz Anforowicz
lgtm - thanks!
3 years, 7 months ago (2017-05-16 22:37:00 UTC) #15
carlosk
japhet@: PTAL at ResourceFetcher.
3 years, 7 months ago (2017-05-16 22:50:26 UTC) #17
Nate Chapin
I take it there's no .html file from which the .mhtml archive was generated (since ...
3 years, 7 months ago (2017-05-16 22:55:33 UTC) #18
carlosk
Thanks. As I'm unable to call any Javascript from the final MHTML page I was ...
3 years, 7 months ago (2017-05-17 00:42:51 UTC) #19
carlosk
dtrainor@: PTAL at mhtml_generation_browsertest.cc. Adding dtrainor@ for owner's review as nasko@ is out.
3 years, 7 months ago (2017-05-17 00:55:31 UTC) #21
David Trainor- moved to gerrit
mhtml_generation_browsertest.cc lgtm
3 years, 7 months ago (2017-05-17 17:32:43 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2866873002/80001
3 years, 7 months ago (2017-05-17 18:21:26 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/456393)
3 years, 7 months ago (2017-05-17 20:35:10 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2866873002/100001
3 years, 7 months ago (2017-05-17 21:45:43 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/458155)
3 years, 7 months ago (2017-05-17 23:59:10 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2866873002/100001
3 years, 7 months ago (2017-05-18 20:26:00 UTC) #34
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 21:46:28 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/656b9cae0b536ee2f9b8a2777f76...

Powered by Google App Engine
This is Rietveld 408576698