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

Issue 236693002: Replace Selection.collapse() with Selection.removeAllRanges() in layout tests.. (Closed)

Created:
6 years, 8 months ago by yoichio
Modified:
6 years, 8 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Replace Selection.collapse() with Selection.removeAllRanges() in layout tests. There are some tests calling Selection.collapse(null). Selection.collapse(null) clears the current selection and its behavior is essentially same as Selection.removeAllRanges(). However, the Selection.collapse method is intended to create a range forming a caret: https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#dom-selection-collapse Calling Selection.collapse(null) to clear the selection is non-standard and I'm going to change Selection.idl to restrict such a usage. BUG=361941 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171436

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M LayoutTests/editing/execCommand/overtype.html View 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/html/nav-element.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/script-tests/article-element.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/script-tests/aside-element.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/script-tests/footer-element.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/script-tests/header-element.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/script-tests/hgroup-element.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/script-tests/main-element.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
yoichio
6 years, 8 months ago (2014-04-14 04:38:10 UTC) #1
yosin_UTC9
ACK Thanks for cleanup!
6 years, 8 months ago (2014-04-14 04:41:05 UTC) #2
Yuta Kitamura
The CL itself LGTM but the change description text has a great room of improvement. ...
6 years, 8 months ago (2014-04-14 06:18:27 UTC) #3
yoichio
The CQ bit was checked by yoichio@chromium.org
6 years, 8 months ago (2014-04-14 06:53:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoichio@chromium.org/236693002/1
6 years, 8 months ago (2014-04-14 06:53:47 UTC) #5
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 07:53:50 UTC) #6
Message was sent while issue was closed.
Change committed as 171436

Powered by Google App Engine
This is Rietveld 408576698