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

Unified Diff: LayoutTests/canvas/philip/tests/2d.text.measure.width.space.html

Issue 293653002: Canvas fillText and measureText handle ideographic spaces differently. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add v/g/* test expectations Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/canvas/canvas-text-ideographic-space.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/canvas/philip/tests/2d.text.measure.width.space.html
diff --git a/LayoutTests/canvas/philip/tests/2d.text.measure.width.space.html b/LayoutTests/canvas/philip/tests/2d.text.measure.width.space.html
index 1c1ec787aca437611fa125075f266983383818ce..59a17154a414d772f1e1bfec3f2d802637096ed2 100644
--- a/LayoutTests/canvas/philip/tests/2d.text.measure.width.space.html
+++ b/LayoutTests/canvas/philip/tests/2d.text.measure.width.space.html
@@ -23,12 +23,12 @@ deferTest();
setTimeout(wrapFunction(function () {
ctx.font = '50px CanvasTest';
_assertSame(ctx.measureText('A B').width, 150, "ctx.measureText('A B').width", "150");
- _assertSame(ctx.measureText('A B').width, 150, "ctx.measureText('A B').width", "150");
- _assertSame(ctx.measureText('A \x09\x0a\x0c\x0d \x09\x0a\x0c\x0dB').width, 150, "ctx.measureText('A \\x09\\x0a\\x0c\\x0d \\x09\\x0a\\x0c\\x0dB').width", "150");
+ _assertSame(ctx.measureText('A B').width, 200, "ctx.measureText('A B').width", "200");
+ _assertSame(ctx.measureText('A \x09\x0a\x0c\x0d \x09\x0a\x0c\x0dB').width, 650, "ctx.measureText('A \\x09\\x0a\\x0c\\x0d \\x09\\x0a\\x0c\\x0dB').width", "650");
_assert(ctx.measureText('A \x0b B').width >= 200, "ctx.measureText('A \\x0b B').width >= 200");
- _assertSame(ctx.measureText(' AB').width, 100, "ctx.measureText(' AB').width", "100");
- _assertSame(ctx.measureText('AB ').width, 100, "ctx.measureText('AB ').width", "100");
+ _assertSame(ctx.measureText(' AB').width, 150, "ctx.measureText(' AB').width", "150");
+ _assertSame(ctx.measureText('AB ').width, 150, "ctx.measureText('AB ').width", "150");
}), 500);
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/canvas/canvas-text-ideographic-space.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698