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

Issue 78963008: Moved remaining legacy viewport tests to unit tests. (Closed)

Created:
7 years, 1 month ago by bokan
Modified:
7 years ago
CC:
blink-reviews, kenneth.christiansen, dglazkov+blink, apavlov+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Moved remaining legacy viewport tests to unit tests. In https://codereview.chromium.org/48613005/ most of the legacy viewport meta tag tests were converted into unit tests. This CL moves the remaining "trickier" tests. I've also cleaned up the unit test infrastructure for viewport tests: I've removed references to fixed layout mode unless the test was actually still using it. I've added a way to replace the viewport UA style sheet for testing. BUG=314001

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+879 lines, -3780 lines) Patch
D LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html View 1 chunk +0 lines, -37 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-remove-and-add-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-1.html View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-1-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-2.html View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-2-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-3.html View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-3-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-4.html View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-4-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-5.html View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-5-expected.txt View 1 chunk +0 lines, -7 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-6.html View 1 chunk +0 lines, -13 lines 0 comments Download
D LayoutTests/fast/viewport/viewport-warnings-6-expected.txt View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/css/ViewportStyle.h View 1 chunk +26 lines, -1 line 0 comments Download
M Source/core/css/ViewportStyle.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/ViewportStyleAndroid.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/FrameTestHelpers.h View 2 chunks +18 lines, -0 lines 0 comments Download
M Source/web/tests/FrameTestHelpers.cpp View 3 chunks +85 lines, -1 line 4 comments Download
A + Source/web/tests/LegacyViewportTest.cpp View 160 chunks +524 lines, -457 lines 2 comments Download
D Source/web/tests/ViewportTest.cpp View 1 chunk +0 lines, -2883 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 69 chunks +194 lines, -244 lines 0 comments Download
M Source/web/tests/WebInputEventConversionTest.cpp View 3 chunks +7 lines, -8 lines 0 comments Download
D Source/web/tests/data/fixed_layout.html View 1 chunk +0 lines, -10 lines 0 comments Download
M Source/web/tests/data/no_viewport_tag.html View 1 chunk +0 lines, -9 lines 0 comments Download
A + Source/web/tests/data/resize_scroll_desktop.html View 0 chunks +-1 lines, --1 lines 0 comments Download
D Source/web/tests/data/resize_scroll_fixed_layout.html View 1 chunk +0 lines, -26 lines 0 comments Download
A + Source/web/tests/data/viewport/viewport-legacy-xhtmlmp-remove-and-add.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A Source/web/tests/data/viewport/viewport-warnings-1.html View 1 chunk +4 lines, -0 lines 0 comments Download
A Source/web/tests/data/viewport/viewport-warnings-2.html View 1 chunk +4 lines, -0 lines 0 comments Download
A Source/web/tests/data/viewport/viewport-warnings-3.html View 1 chunk +4 lines, -0 lines 0 comments Download
A Source/web/tests/data/viewport/viewport-warnings-4.html View 1 chunk +4 lines, -0 lines 0 comments Download
A Source/web/tests/data/viewport/viewport-warnings-5.html View 1 chunk +4 lines, -0 lines 0 comments Download
A Source/web/tests/data/viewport/viewport-warnings-6.html View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/web.gypi View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
bokan
I've split the old CL into two (still a little big, but hopefully better). This ...
7 years, 1 month ago (2013-11-21 20:16:16 UTC) #1
kenneth.r.christiansen
I still find it huge, but I know the amount of work it will be ...
7 years, 1 month ago (2013-11-21 20:30:36 UTC) #2
bokan
https://codereview.chromium.org/78963008/diff/1/Source/web/tests/LegacyViewportTest.cpp File Source/web/tests/LegacyViewportTest.cpp (right): https://codereview.chromium.org/78963008/diff/1/Source/web/tests/LegacyViewportTest.cpp#newcode2718 Source/web/tests/LegacyViewportTest.cpp:2718: EXPECT_EQ(320, constraints.layoutSize.width()); On 2013/11/21 20:30:36, kenneth.r.christiansen wrote: > I ...
7 years, 1 month ago (2013-11-21 20:37:59 UTC) #3
bokan
Rune, could you please have a look? If you're ok with it I'll add an ...
7 years ago (2013-11-26 19:24:51 UTC) #4
rune
On 2013/11/26 19:24:51, bokan wrote: > Rune, could you please have a look? If you're ...
7 years ago (2013-11-27 09:59:55 UTC) #5
kenneth.r.christiansen
> Regarding OWNER, I think Kenneth is an OWNER now, so this should be possible ...
7 years ago (2013-11-27 10:36:40 UTC) #6
bokan
+abarth for OWNER
7 years ago (2013-11-27 17:55:55 UTC) #7
abarth-chromium
aelias is a better reviewer for this CL, but it looks like he's out-of-office for ...
7 years ago (2013-11-27 18:40:36 UTC) #8
abarth-chromium
I don't really feel comfortable reviewing this CL. There's a trade-off to evaluate here and ...
7 years ago (2013-11-27 18:43:50 UTC) #9
bokan
https://codereview.chromium.org/78963008/diff/1/Source/web/tests/FrameTestHelpers.cpp File Source/web/tests/FrameTestHelpers.cpp (right): https://codereview.chromium.org/78963008/diff/1/Source/web/tests/FrameTestHelpers.cpp#newcode218 Source/web/tests/FrameTestHelpers.cpp:218: } On 2013/11/27 18:43:50, abarth wrote: > These seem ...
7 years ago (2013-11-27 19:20:10 UTC) #10
abarth-chromium
On 2013/11/27 19:20:10, bokan wrote: > https://codereview.chromium.org/78963008/diff/1/Source/web/tests/FrameTestHelpers.cpp > File Source/web/tests/FrameTestHelpers.cpp (right): > > https://codereview.chromium.org/78963008/diff/1/Source/web/tests/FrameTestHelpers.cpp#newcode218 > ...
7 years ago (2013-11-27 19:38:06 UTC) #11
bokan
On 2013/11/27 19:38:06, abarth wrote: > On 2013/11/27 19:20:10, bokan wrote: > > > https://codereview.chromium.org/78963008/diff/1/Source/web/tests/FrameTestHelpers.cpp ...
7 years ago (2013-11-27 19:49:03 UTC) #12
abarth-chromium
7 years ago (2013-12-02 19:26:32 UTC) #13
Message was sent while issue was closed.
On 2013/11/27 19:49:03, bokan wrote:
> Yup, that sounds like the ideal solution, but I have no experience in the CSS
> engine. Who should I talk with to point me in the right direction?

I would probably ask ojan or eseidel.

Powered by Google App Engine
This is Rietveld 408576698