Import a Chromium <input type=color> test.
authorjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Sep 2015 00:34:08 +0000 (00:34 +0000)
committerjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Sep 2015 00:34:08 +0000 (00:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=148844

Reviewed by Andy Estes.

* fast/forms/color/color-suggestion-picker-crash-on-set-value-expected.txt: Added.
* fast/forms/color/color-suggestion-picker-crash-on-set-value.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189408 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/forms/color/color-suggestion-picker-crash-on-set-value-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/color/color-suggestion-picker-crash-on-set-value.html [new file with mode: 0644]

index 8c30b1b..25a26b0 100644 (file)
@@ -1,3 +1,13 @@
+2015-09-04  Jon Honeycutt  <jhoneycutt@apple.com>
+
+        Import a Chromium <input type=color> test.
+        https://bugs.webkit.org/show_bug.cgi?id=148844
+
+        Reviewed by Andy Estes.
+
+        * fast/forms/color/color-suggestion-picker-crash-on-set-value-expected.txt: Added.
+        * fast/forms/color/color-suggestion-picker-crash-on-set-value.html: Added.
+
 2015-09-04  Dean Jackson  <dino@apple.com>
 
         [WebGL] Update WebGL 1.0.3 conformance tests
diff --git a/LayoutTests/fast/forms/color/color-suggestion-picker-crash-on-set-value-expected.txt b/LayoutTests/fast/forms/color/color-suggestion-picker-crash-on-set-value-expected.txt
new file mode 100644 (file)
index 0000000..d3d4ded
--- /dev/null
@@ -0,0 +1 @@
+Test passes if it does not CRASH. crbug.com/454748 
diff --git a/LayoutTests/fast/forms/color/color-suggestion-picker-crash-on-set-value.html b/LayoutTests/fast/forms/color/color-suggestion-picker-crash-on-set-value.html
new file mode 100644 (file)
index 0000000..3f12ebd
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+
+Test passes if it does not CRASH. crbug.com/454748
+<input id="color" list="single" type="color"/>
+
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+var input = document.getElementById('color');
+input.focus();
+eventSender.keyDown(' ');
+input.value = '#444444';
+</script>