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

Unified Diff: LayoutTests/fast/text/shaping/shaping-width-initialized.html

Issue 1108663003: Always initialize |m_totalWidth| in HarfBuzzShaper::shape. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove redundant initialization Created 5 years, 8 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 | « no previous file | LayoutTests/fast/text/shaping/shaping-width-initialized-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text/shaping/shaping-width-initialized.html
diff --git a/LayoutTests/fast/text/shaping/shaping-width-initialized.html b/LayoutTests/fast/text/shaping/shaping-width-initialized.html
new file mode 100644
index 0000000000000000000000000000000000000000..5547e8a4fd89a7d50fd7312fccc174b53557c4ee
--- /dev/null
+++ b/LayoutTests/fast/text/shaping/shaping-width-initialized.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<body>
+ <p>Test PASSES if it does not CRASH.</p>
+ <script>
+ var canvas = document.createElement('canvas');
+ document.body.appendChild(canvas);
+ var ctx = canvas.getContext('2d');
+ ctx.fillText(unescape('%udfae%u0fb5%ufc0a'), 0, 0);
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ </script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/text/shaping/shaping-width-initialized-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698