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

Issue 2138653002: [Editing][CodeHealth] Improve result comparing in assert_selection (Closed)

Created:
4 years, 5 months ago by yoichio
Modified:
4 years, 5 months ago
Reviewers:
yosin_UTC9
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

Improve result comparing in assert_selection That's because assert_selection often compares long HTML fragment. TEST=Layouttests\editing\assert_selection.html Committed: https://crrev.com/8466c81e38957bf0075c87e94403d963904492cd Cr-Commit-Position: refs/heads/master@{#404801}

Patch Set 1 #

Total comments: 2

Patch Set 2 : update #

Total comments: 6

Patch Set 3 : update #

Total comments: 2

Patch Set 4 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/editing/assert_selection.html View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/assert_selection.js View 1 2 3 4 chunks +27 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
yoichio
4 years, 5 months ago (2016-07-11 05:19:12 UTC) #3
yosin_UTC9
Good idea! https://codereview.chromium.org/2138653002/diff/1/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2138653002/diff/1/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode659 third_party/WebKit/LayoutTests/editing/assert_selection.js:659: var comparedLength = Math.min(actualText.length, expectedText.length); Could you ...
4 years, 5 months ago (2016-07-11 06:48:18 UTC) #4
yoichio
https://codereview.chromium.org/2138653002/diff/1/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2138653002/diff/1/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode659 third_party/WebKit/LayoutTests/editing/assert_selection.js:659: var comparedLength = Math.min(actualText.length, expectedText.length); On 2016/07/11 06:48:18, Yosi_UTC9 ...
4 years, 5 months ago (2016-07-11 09:04:14 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2138653002/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2138653002/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode634 third_party/WebKit/LayoutTests/editing/assert_selection.js:634: */ Please add @return {string} https://codereview.chromium.org/2138653002/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode637 third_party/WebKit/LayoutTests/editing/assert_selection.js:637: var i ...
4 years, 5 months ago (2016-07-12 01:58:36 UTC) #6
yosin_UTC9
https://codereview.chromium.org/2138653002/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2138653002/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode635 third_party/WebKit/LayoutTests/editing/assert_selection.js:635: function commonSubstr(str1, str2) { This function should be named ...
4 years, 5 months ago (2016-07-12 02:26:54 UTC) #7
yoichio
4 years, 5 months ago (2016-07-12 04:12:08 UTC) #10
yoichio
https://codereview.chromium.org/2138653002/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2138653002/diff/20001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode634 third_party/WebKit/LayoutTests/editing/assert_selection.js:634: */ On 2016/07/12 01:58:36, Yosi_UTC9 wrote: > Please add ...
4 years, 5 months ago (2016-07-12 04:12:31 UTC) #11
yosin_UTC9
lgtm https://codereview.chromium.org/2138653002/diff/80001/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2138653002/diff/80001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode670 third_party/WebKit/LayoutTests/editing/assert_selection.js:670: sample.remove(); nit: early return is better.
4 years, 5 months ago (2016-07-12 04:15:12 UTC) #12
yoichio
4 years, 5 months ago (2016-07-12 04:24:36 UTC) #13
yoichio
https://codereview.chromium.org/2138653002/diff/80001/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2138653002/diff/80001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode670 third_party/WebKit/LayoutTests/editing/assert_selection.js:670: sample.remove(); On 2016/07/12 04:15:12, Yosi_UTC9 wrote: > nit: early ...
4 years, 5 months ago (2016-07-12 04:24:50 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/2138653002/100001
4 years, 5 months ago (2016-07-12 04:25:35 UTC) #17
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/260670)
4 years, 5 months ago (2016-07-12 05:54:18 UTC) #19
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/2138653002/100001
4 years, 5 months ago (2016-07-12 07:05:19 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 5 months ago (2016-07-12 10:00:10 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-12 10:00:33 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-12 10:02:02 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8466c81e38957bf0075c87e94403d963904492cd
Cr-Commit-Position: refs/heads/master@{#404801}

Powered by Google App Engine
This is Rietveld 408576698