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

Issue 276883002: Ignorable characters were shown/rendered in Blink (Closed)

Created:
6 years, 7 months ago by h.joshi
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr, krit, dsinclair, jbroman, danakj, Rik, Stephen Chennney, pdr., rwlbuis, Dominik Röttsches
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Ignorable characters were shown/rendered in Blink Updating Unicode List to include ignorable characters while calculating code path to take for rendering and layouting BUG=256333 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174133

Patch Set 1 #

Patch Set 2 : Adding Test Case #

Patch Set 3 : Adding text-only test case #

Total comments: 4

Patch Set 4 : Patch with comment fix #

Patch Set 5 : fixing expected output #

Patch Set 6 : Correcting expected output #

Patch Set 7 : Updating TestExpectation file #

Patch Set 8 : Updating Test Expectation for Windows/mac platform #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/bidi-ignorable-unicode.html View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/bidi-ignorable-unicode-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A LayoutTests/fast/text/bidi-ignorable-unicode-expected.txt View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
M Source/platform/fonts/Character.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
h.joshi
PTAL
6 years, 7 months ago (2014-05-09 10:05:12 UTC) #1
behdad_google
lgtm
6 years, 7 months ago (2014-05-09 17:44:00 UTC) #2
eseidel
Can't this be tested?
6 years, 7 months ago (2014-05-09 17:46:39 UTC) #3
h.joshi
Thanks Behdad, @eseidel: We can add test case mentioned in http://crbug.com/256333, pls suggest On 2014/05/09 ...
6 years, 7 months ago (2014-05-10 01:45:57 UTC) #4
eseidel
Do the tests added for https://codereview.chromium.org/58383002/ catch this?
6 years, 7 months ago (2014-05-10 06:08:36 UTC) #5
h.joshi
All test passed (test was run on Mac 10.9.2), go following on running test: SUCCESS: ...
6 years, 7 months ago (2014-05-11 03:46:46 UTC) #6
eseidel
There are instructions on how to run the tests at: https://codereview.chromium.org/39523002 The instructions you list ...
6 years, 7 months ago (2014-05-11 04:23:52 UTC) #7
eseidel
I just did the following and it worked: ./out/Debug/blink_platform_unittests --gtest_filter=BidiResolver.BidiTest_txt Notice how that if you ...
6 years, 7 months ago (2014-05-11 04:29:25 UTC) #8
h.joshi
Followed the suggested command, downloaded "BiDitest.txt" to source folder and now it shows many things ...
6 years, 7 months ago (2014-05-11 05:18:38 UTC) #9
eseidel
That means that your change is not covered by that test. If it were, then ...
6 years, 7 months ago (2014-05-11 05:25:55 UTC) #10
eseidel
Sorry, it makes sense to me now that your change would not be covere by ...
6 years, 7 months ago (2014-05-11 05:32:09 UTC) #11
eseidel
Why do these characters need to send us down the complex text path? https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/platform/fonts/Character.cpp&q=Character.cpp&sq=package:chromium&l=114 Can ...
6 years, 7 months ago (2014-05-11 05:35:11 UTC) #12
h.joshi
in crbug.com:256333 we have following test case: data:text/html,a⁦b⁩c Now as per Unicode 6.3, 0x2066 and ...
6 years, 7 months ago (2014-05-11 07:37:35 UTC) #13
eseidel
So can we just write a LayoutTest which covers your fix then? We just need ...
6 years, 7 months ago (2014-05-11 08:37:41 UTC) #14
h.joshi
Sure, will upload LayoutTest with net patch and then submit. On 2014/05/11 08:37:41, eseidel wrote: ...
6 years, 7 months ago (2014-05-11 12:19:07 UTC) #15
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 7 months ago (2014-05-12 06:06:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/276883002/20001
6 years, 7 months ago (2014-05-12 06:06:23 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-12 06:06:25 UTC) #18
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-12 06:06:26 UTC) #19
eseidel
Does this need to be a pixel test? or is a text-based test sufficient? Pixel ...
6 years, 7 months ago (2014-05-12 06:08:10 UTC) #20
h.joshi
I think text-based should also work, as when rendering is correct default glyphs will bot ...
6 years, 7 months ago (2014-05-12 06:15:53 UTC) #21
eseidel
I don't know. If you have a text-based test which fails w/o your patch and ...
6 years, 7 months ago (2014-05-12 06:16:57 UTC) #22
h.joshi
Sorry for my ignorance, for text-based I have to generate only bidi-ignorable-unicode-expected.txt or some other ...
6 years, 7 months ago (2014-05-12 06:34:28 UTC) #23
eseidel
window.testRunner.dumpAsText() will make your test text-only: http://trac.webkit.org/wiki/Writing%20Layout%20Tests%20for%20DumpRenderTree http://www.chromium.org/developers/testing/webkit-layout-tests
6 years, 7 months ago (2014-05-12 07:32:27 UTC) #24
h.joshi
Pls review, added new patch with "text-only" setting. On 2014/05/12 07:32:27, eseidel wrote: > window.testRunner.dumpAsText() ...
6 years, 7 months ago (2014-05-12 09:08:21 UTC) #25
leviw_travelin_and_unemployed
lgtm with nits https://codereview.chromium.org/276883002/diff/40001/LayoutTests/fast/text/bidi-ignorable-unicode.html File LayoutTests/fast/text/bidi-ignorable-unicode.html (right): https://codereview.chromium.org/276883002/diff/40001/LayoutTests/fast/text/bidi-ignorable-unicode.html#newcode1 LayoutTests/fast/text/bidi-ignorable-unicode.html:1: <html> Nit: please add a doctype. ...
6 years, 7 months ago (2014-05-12 10:03:22 UTC) #26
eseidel
https://codereview.chromium.org/276883002/diff/40001/LayoutTests/fast/text/bidi-ignorable-unicode-expected.txt File LayoutTests/fast/text/bidi-ignorable-unicode-expected.txt (right): https://codereview.chromium.org/276883002/diff/40001/LayoutTests/fast/text/bidi-ignorable-unicode-expected.txt#newcode5 LayoutTests/fast/text/bidi-ignorable-unicode-expected.txt:5: a⁦b⁩c This looks like the test is failing?
6 years, 7 months ago (2014-05-12 10:16:40 UTC) #27
h.joshi
Output should be "a⁦b⁩c" only as 0x2066 and 0x2069 will not be rendered. On 2014/05/12 ...
6 years, 7 months ago (2014-05-12 10:46:42 UTC) #28
behdad_google
I would be really surprised if you can test this with a text-only test... This ...
6 years, 7 months ago (2014-05-12 18:48:46 UTC) #29
h.joshi
Sorry for the confusion created, initially I did thought dump render tree would not be ...
6 years, 7 months ago (2014-05-13 05:27:13 UTC) #30
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 7 months ago (2014-05-14 15:03:22 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/276883002/80001
6 years, 7 months ago (2014-05-14 15:03:31 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 16:12:26 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 16:47:46 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/7207)
6 years, 7 months ago (2014-05-14 16:47:46 UTC) #35
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 7 months ago (2014-05-15 14:50:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/276883002/120001
6 years, 7 months ago (2014-05-15 14:50:35 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 21:45:37 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 22:41:39 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/6808)
6 years, 7 months ago (2014-05-15 22:41:40 UTC) #40
h.joshi
The CQ bit was checked by h.joshi@samsung.com
6 years, 7 months ago (2014-05-16 06:11:49 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/h.joshi@samsung.com/276883002/140001
6 years, 7 months ago (2014-05-16 06:11:59 UTC) #42
commit-bot: I haz the power
Change committed as 174133
6 years, 7 months ago (2014-05-16 07:29:49 UTC) #43
eseidel
I really don't like that rietveld allows you to land a patch which is completely ...
6 years, 7 months ago (2014-05-16 18:08:34 UTC) #44
h.joshi
6 years, 7 months ago (2014-05-19 04:16:28 UTC) #45
Message was sent while issue was closed.
@eseidel: I did not changed any thing in the code, only test case expected
output file "png/text" was changed. Initially generated file "expected.txt" was
not correct, I should have re-checked expected text file before committing text
file, due to some confusion of output format I missed that. Will make sure to
cross check in future patches.

Powered by Google App Engine
This is Rietveld 408576698