Title: [99582] trunk/LayoutTests
- Revision
- 99582
- Author
- commit-qu...@webkit.org
- Date
- 2011-11-08 10:04:11 -0800 (Tue, 08 Nov 2011)
Log Message
Autofocus inputs don't always honor selector input:focus.
https://bugs.webkit.org/show_bug.cgi?id=24093
Already fixed and works on TOT. Adding layout test case for the same.
Patch by Kaustubh Atrawalkar <kaust...@motorola.com> on 2011-11-08
Reviewed by Kent Tamura.
* fast/forms/autofocus-input-css-style-change-expected.txt: Added.
* fast/forms/autofocus-input-css-style-change.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (99581 => 99582)
--- trunk/LayoutTests/ChangeLog 2011-11-08 17:51:06 UTC (rev 99581)
+++ trunk/LayoutTests/ChangeLog 2011-11-08 18:04:11 UTC (rev 99582)
@@ -1,3 +1,15 @@
+2011-11-08 Kaustubh Atrawalkar <kaust...@motorola.com>
+
+ Autofocus inputs don't always honor selector input:focus.
+ https://bugs.webkit.org/show_bug.cgi?id=24093
+
+ Already fixed and works on TOT. Adding layout test case for the same.
+
+ Reviewed by Kent Tamura.
+
+ * fast/forms/autofocus-input-css-style-change-expected.txt: Added.
+ * fast/forms/autofocus-input-css-style-change.html: Added.
+
2011-11-08 Hans Wennborg <h...@chromium.org>
IndexedDB: Start using the onSuccessWithContinuation() callback
Added: trunk/LayoutTests/fast/forms/autofocus-input-css-style-change-expected.txt (0 => 99582)
--- trunk/LayoutTests/fast/forms/autofocus-input-css-style-change-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/forms/autofocus-input-css-style-change-expected.txt 2011-11-08 18:04:11 UTC (rev 99582)
@@ -0,0 +1,4 @@
+The following text box should have focus and should be green.
+
+
+PASS
Added: trunk/LayoutTests/fast/forms/autofocus-input-css-style-change.html (0 => 99582)
--- trunk/LayoutTests/fast/forms/autofocus-input-css-style-change.html (rev 0)
+++ trunk/LayoutTests/fast/forms/autofocus-input-css-style-change.html 2011-11-08 18:04:11 UTC (rev 99582)
@@ -0,0 +1,21 @@
+<!DOCYTPE html>
+<html>
+<style>
+input { background: red; }
+input:focus { background: green; }
+</style>
+<body>
+<p>The following text box should have focus and should be green.</p>
+<input type="text" id="test" autofocus>
+<div id="result">FAIL</div>
+<script>
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+}
+
+var test = document.getElementById("test");
+if (document.defaultView.getComputedStyle(test, null).getPropertyValue('background-color') == "rgb(0, 128, 0)")
+ result.innerHTML = "PASS";
+</script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes