Index: LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html |
diff --git a/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html b/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9e28750b5a158c4f08b5f91b2d7ae0ed8be9f8d9 |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+setup(function() { |
+ window.ctx = document.createElement('canvas').getContext('2d'); |
+}); |
+ |
+test(function() { |
+ ctx.fillStyle = "#008000"; |
+ ctx.fillStyle = "800000"; |
+ assert_equals(ctx.fillStyle, "#008000"); |
+}, 'fillStyle should not accept quirks mode hex colors.'); |
+</script> |