Title: [87081] trunk/LayoutTests
- Revision
- 87081
- Author
- [email protected]
- Date
- 2011-05-23 10:59:17 -0700 (Mon, 23 May 2011)
Log Message
2011-05-23 Ryosuke Niwa <[email protected]>
Reviewed by Tony Chang.
Style visibility: hidden on <br/> tags causes input fields to lose focus after deleting all content
https://bugs.webkit.org/show_bug.cgi?id=45889
Add a regression test now that the bug has been fixed by r87067.
* fast/forms/delete-text-with-invisible-br-expected.txt: Added.
* fast/forms/delete-text-with-invisible-br.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (87080 => 87081)
--- trunk/LayoutTests/ChangeLog 2011-05-23 17:56:03 UTC (rev 87080)
+++ trunk/LayoutTests/ChangeLog 2011-05-23 17:59:17 UTC (rev 87081)
@@ -1,3 +1,15 @@
+2011-05-23 Ryosuke Niwa <[email protected]>
+
+ Reviewed by Tony Chang.
+
+ Style visibility: hidden on <br/> tags causes input fields to lose focus after deleting all content
+ https://bugs.webkit.org/show_bug.cgi?id=45889
+
+ Add a regression test now that the bug has been fixed by r87067.
+
+ * fast/forms/delete-text-with-invisible-br-expected.txt: Added.
+ * fast/forms/delete-text-with-invisible-br.html: Added.
+
2011-05-23 Sheriff Bot <[email protected]>
Unreviewed, rolling out r87070.
Added: trunk/LayoutTests/fast/forms/delete-text-with-invisible-br-expected.txt (0 => 87081)
--- trunk/LayoutTests/fast/forms/delete-text-with-invisible-br-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/forms/delete-text-with-invisible-br-expected.txt 2011-05-23 17:59:17 UTC (rev 87081)
@@ -0,0 +1,3 @@
+This test ensures WebKit does not lose focus when the text is removed from a text field when br's visibility is hidden.
+
+PASS
Added: trunk/LayoutTests/fast/forms/delete-text-with-invisible-br.html (0 => 87081)
--- trunk/LayoutTests/fast/forms/delete-text-with-invisible-br.html (rev 0)
+++ trunk/LayoutTests/fast/forms/delete-text-with-invisible-br.html 2011-05-23 17:59:17 UTC (rev 87081)
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style type="text/css">
+br {visibility:hidden}
+</style>
+</head>
+<body>
+<p>This test ensures WebKit does not lose focus when the text is removed from a text field when br's visibility is hidden.</p>
+<form>
+<fieldset>
+<input id="test" type="text">
+</fieldset>
+</form>
+<script>
+
+var test = document.getElementById('test');
+test.focus();
+document.execCommand('InsertText', false, 'abc');
+document.execCommand('Delete', false, null);
+document.execCommand('Delete', false, null);
+document.execCommand('Delete', false, null);
+document.execCommand('InsertText', false, 'PASS');
+
+if (test.value != 'PASS')
+ test.value = 'FAIL';
+
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ test.parentNode.parentNode.style.display = 'none';
+ document.writeln(test.value);
+}
+
+</script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes