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

Issue 2410693002: Add a few more edge cases to CSS serialization test. (Closed)

Created:
4 years, 2 months ago by carlosk
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a few more edge cases to CSS serialization test. This change slightly modifies the input HTML file for the FrameSerializerTest.CSS test to exercise a couple more cases that should be dealt by FrameSerializer: - Linked CSS style using a data URL. - External CSS resource being references twice. - Simulate the attemp to include a CSS already included in a previously serialized frame. Note that these inclusions almost do not affect the test expectations as they are edge cases that should not change the final serialized results. This is a follow up of https://crrev.com/2397983002. BUG=645685 Committed: https://crrev.com/195ccbed3bad6e043253cab1c150652c72be5e96 Cr-Commit-Position: refs/heads/master@{#425239}

Patch Set 1 #

Patch Set 2 : Adds the case of a CSS already being included in another frame. #

Total comments: 4

Patch Set 3 : minor text changes. #

Patch Set 4 : Adds image link to data URL CSS contents. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -8 lines) Patch
M third_party/WebKit/Source/core/frame/FrameSerializer.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 1 2 3 7 chunks +33 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html View 1 2 3 3 chunks +19 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/frameserializer/css/included_in_another_frame.css View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
carlosk
dcheng@, lukasza@: PTAL. This adds a unit test version of the missing tests we've been ...
4 years, 2 months ago (2016-10-11 23:08:54 UTC) #9
Łukasz Anforowicz
Thank you for adding the tests. LGTM (with 2 optional improvement ideas). https://codereview.chromium.org/2410693002/diff/20001/third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html File third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html ...
4 years, 2 months ago (2016-10-11 23:30:37 UTC) #10
carlosk
Thanks. https://codereview.chromium.org/2410693002/diff/20001/third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html File third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html (right): https://codereview.chromium.org/2410693002/diff/20001/third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html#newcode12 third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html:12: href="data:text/css;charset=utf-8;base64,I2RpdkZ1Y2hzaWEgew0KICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJ2RvX25vdF9zZXJpYWxpemUucG5nJyk7DQogIGJhY2tncm91bmQtY29sb3I6ICNGRjAwRkY7DQp9" /> On 2016/10/11 23:30:37, Łukasz Anforowicz wrote: ...
4 years, 2 months ago (2016-10-12 00:41:30 UTC) #12
dcheng
lgtm
4 years, 2 months ago (2016-10-13 17:07:34 UTC) #16
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/2410693002/60001
4 years, 2 months ago (2016-10-14 00:11:30 UTC) #19
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/315857)
4 years, 2 months ago (2016-10-14 01:15:44 UTC) #21
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/2410693002/60001
4 years, 2 months ago (2016-10-14 01:17:50 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-14 02:19:28 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 02:22:57 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/195ccbed3bad6e043253cab1c150652c72be5e96
Cr-Commit-Position: refs/heads/master@{#425239}

Powered by Google App Engine
This is Rietveld 408576698