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

Issue 2013603004: Introduce assert_selection() for editing tests (Closed)

Created:
4 years, 7 months ago by yosin_UTC9
Modified:
4 years, 7 months ago
Reviewers:
tkent, yoichio
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce assert_selection() for editing tests This patch introduces |assert_selection()| function to help writing editing test cases with W3C test harness. Using |assert_selection()|, we can write test cases for execCommand as below: assert_selection( '<div conteneditable>^foo|</div>', 'createLink abc', '<div conteneditable><a href="abc">foo</a></div>') rather than sequence of |assert_equals()| for |Selection| and |innerHTML|. More samples are found in crrev.com/2018463002 BUG=n/a TEST=n/a; no behavior changes Committed: https://crrev.com/4af8b92817a88711cb2d42807badcf356a90efb7 Cr-Commit-Position: refs/heads/master@{#396161}

Patch Set 1 : 2016-05-26T16:46:56 #

Patch Set 2 : 2016-05-26T16:53:56 #

Total comments: 1

Patch Set 3 : 2016-05-26T17:48:22 #

Patch Set 4 : 2016-05-26T18:10:04 #

Patch Set 5 : 2016-05-26T18:22:16 #

Patch Set 6 : 2016-05-26T19:25:56 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -164 lines) Patch
A third_party/WebKit/LayoutTests/editing/assert_selection.js View 1 2 3 4 5 1 chunk +612 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/createLink.html View 1 chunk +45 lines, -82 lines 0 comments Download
D third_party/WebKit/LayoutTests/editing/execCommand/createLink-expected.txt View 1 chunk +0 lines, -41 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/editing/execCommand/createLink-expected.txt View 1 chunk +0 lines, -41 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
yosin_UTC9
PTAL
4 years, 7 months ago (2016-05-26 08:04:53 UTC) #5
tkent
lgtm https://codereview.chromium.org/2013603004/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2013603004/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode338 third_party/WebKit/LayoutTests/editing/assert_selection.js:338: const END_TAG_OMISSIBLE_NAMES = new Set(['br', 'hr', 'img', 'input', ...
4 years, 7 months ago (2016-05-26 08:23:14 UTC) #6
yosin_UTC9
On 2016/05/26 at 08:23:14, tkent wrote: > lgtm > > https://codereview.chromium.org/2013603004/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js > File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): ...
4 years, 7 months ago (2016-05-26 08:52:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2013603004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2013603004/40001
4 years, 7 months ago (2016-05-26 08:52:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2013603004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2013603004/60001
4 years, 7 months ago (2016-05-26 09:11:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2013603004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2013603004/100001
4 years, 7 months ago (2016-05-26 10:28:24 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-26 11:29:24 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 11:30:41 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4af8b92817a88711cb2d42807badcf356a90efb7
Cr-Commit-Position: refs/heads/master@{#396161}

Powered by Google App Engine
This is Rietveld 408576698