Title: [118428] trunk/LayoutTests
Revision
118428
Author
[email protected]
Date
2012-05-24 15:21:06 -0700 (Thu, 24 May 2012)

Log Message

Test case for focusing readonly elements
https://bugs.webkit.org/show_bug.cgi?id=87429

Reviewed by Joseph Pecoraro.

* fast/forms/input-readonly-focus-expected.txt: Added.
* fast/forms/input-readonly-focus.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (118427 => 118428)


--- trunk/LayoutTests/ChangeLog	2012-05-24 22:19:48 UTC (rev 118427)
+++ trunk/LayoutTests/ChangeLog	2012-05-24 22:21:06 UTC (rev 118428)
@@ -1,3 +1,13 @@
+2012-05-24  Jeffrey Pfau  <[email protected]>
+
+        Test case for focusing readonly elements
+        https://bugs.webkit.org/show_bug.cgi?id=87429
+
+        Reviewed by Joseph Pecoraro.
+
+        * fast/forms/input-readonly-focus-expected.txt: Added.
+        * fast/forms/input-readonly-focus.html: Added.
+
 2012-05-24  Levi Weintraub  <[email protected]>
 
         Avoid creating InlineBoxes for floating and positioned objects in isolates.

Added: trunk/LayoutTests/fast/forms/input-readonly-focus-expected.txt (0 => 118428)


--- trunk/LayoutTests/fast/forms/input-readonly-focus-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/forms/input-readonly-focus-expected.txt	2012-05-24 22:21:06 UTC (rev 118428)
@@ -0,0 +1 @@
+PASS

Added: trunk/LayoutTests/fast/forms/input-readonly-focus.html (0 => 118428)


--- trunk/LayoutTests/fast/forms/input-readonly-focus.html	                        (rev 0)
+++ trunk/LayoutTests/fast/forms/input-readonly-focus.html	2012-05-24 22:21:06 UTC (rev 118428)
@@ -0,0 +1,25 @@
+<html>
+<head>
+<script>
+function runTest() {
+  window.layoutTestController.dumpAsText();
+
+  var input = document.getElementById('i');
+  eventSender.mouseMoveTo(input.offsetLeft + input.offsetWidth / 2, input.offsetTop + input.offsetHeight / 2);
+  eventSender.mouseDown();
+  eventSender.mouseUp();
+}
+window._onload_ = function() {
+  var input = document.getElementById('i');
+  input._onfocus_ = function(e) {
+    document.body.innerHTML = 'PASS';
+  }
+  if (window.layoutTestController)
+    runTest();
+}
+</script>
+</head>
+<body>
+<input id="i" readonly>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to