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

Unified Diff: LayoutTests/canvas/stroke-with-system-color-and-alpha-crash.html

Issue 725913003: Fix stroke color definition of canvas context. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typos in the test. Created 6 years, 1 month 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/canvas/stroke-with-system-color-and-alpha-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/canvas/stroke-with-system-color-and-alpha-crash.html
diff --git a/LayoutTests/canvas/stroke-with-system-color-and-alpha-crash.html b/LayoutTests/canvas/stroke-with-system-color-and-alpha-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..d8d87935be0f2ccd6f163d5528767466dbab931a
--- /dev/null
+++ b/LayoutTests/canvas/stroke-with-system-color-and-alpha-crash.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<canvas width='800px' height='600px' id='my_canvas'></canvas>
+<p>PASS if it does not crash in debug.</p>
+<script>
+var ctx = document.getElementById('my_canvas').getContext('2d');
+ctx.setStrokeColor("ButtonFace", 1);
+
+if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
« no previous file with comments | « no previous file | LayoutTests/canvas/stroke-with-system-color-and-alpha-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698