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

Issue 2936283003: Update CSSOM SmoothScroll Web Platform Test (Closed)

Created:
3 years, 6 months ago by sunyunjia
Modified:
3 years, 6 months ago
Reviewers:
foolip
CC:
chromium-reviews, blink-reviews-w3ctests_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update CSSOM SmoothScroll Web Platform Test This patch improves the coverage of smooth scroll web platform test by including tests for shadowDom and tests of empty or undefined arguments. It reduces the frames needed for the test by checking the change in scroll position. The test is changed to be more manual-test-friendly as users can see the smooth scroll animation by opening the test in browser. It also changes the interface of Element.scrollIntoView() to match the spec. BUG=648446 Review-Url: https://codereview.chromium.org/2936283003 Cr-Commit-Position: refs/heads/master@{#479903} Committed: https://chromium.googlesource.com/chromium/src/+/3cab89b759fb285bb1b0a5f7842e9e1f0770a910

Patch Set 1 #

Patch Set 2 : format #

Total comments: 9

Patch Set 3 : Update the test #

Total comments: 3

Patch Set 4 : Update the tests and idl #

Total comments: 2

Messages

Total messages: 27 (20 generated)
sunyunjia
Hi Philip, I've updated the test according to the feedback in https://codereview.chromium.org/2650343008/ Please take a ...
3 years, 6 months ago (2017-06-15 00:27:07 UTC) #7
foolip
https://codereview.chromium.org/2936283003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html File third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html (right): https://codereview.chromium.org/2936283003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html#newcode25 third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html:25: function animate (test, next_test) { Optional nits/suggestions for how ...
3 years, 6 months ago (2017-06-15 08:38:04 UTC) #10
sunyunjia
PTAL, thanks! https://codereview.chromium.org/2936283003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html File third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html (right): https://codereview.chromium.org/2936283003/diff/20001/third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html#newcode25 third_party/WebKit/LayoutTests/external/wpt/cssom-view/scrollIntoView.html:25: function animate (test, next_test) { On 2017/06/15 ...
3 years, 6 months ago (2017-06-15 18:00:26 UTC) #13
foolip
test lgtm % nits, but nullability of the arguments seems like it should be fixable ...
3 years, 6 months ago (2017-06-15 19:41:53 UTC) #14
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/2936283003/60001
3 years, 6 months ago (2017-06-16 01:29:06 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/3cab89b759fb285bb1b0a5f7842e9e1f0770a910
3 years, 6 months ago (2017-06-16 01:51:52 UTC) #26
foolip
3 years, 6 months ago (2017-06-16 08:20:33 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/2936283003/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/dom/Element.cpp (right):

https://codereview.chromium.org/2936283003/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/dom/Element.cpp:470: } else if (arg.isNull()) {
This can be removed again because the argument can never be null.

https://codereview.chromium.org/2936283003/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/dom/Element.idl (right):

https://codereview.chromium.org/2936283003/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/dom/Element.idl:98: void scrollIntoView(optional
(ScrollIntoViewOptions or boolean) arg);
Per https://github.com/w3c/csswg-drafts/pull/1505 it should also have the
default value true. Then you should be able to have just one signature in the
C++ as well, the generated bindings should always call with a
ScrollIntoViewOptions argument.

Powered by Google App Engine
This is Rietveld 408576698