Title: [148882] trunk/LayoutTests
Revision
148882
Author
[email protected]
Date
2013-04-22 08:02:26 -0700 (Mon, 22 Apr 2013)

Log Message

Update layout test verifying Tab behaves correctly after linking to fragment ID
https://bugs.webkit.org/show_bug.cgi?id=114645

Patch by Mario Sanchez Prada <[email protected]> on 2013-04-22
Reviewed by Chris Fleizach.

* fast/dom/fragment-activation-focuses-target.html: Updated test.
* fast/dom/fragment-activation-focuses-target-expected.txt: Updated expectations.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (148881 => 148882)


--- trunk/LayoutTests/ChangeLog	2013-04-22 14:26:28 UTC (rev 148881)
+++ trunk/LayoutTests/ChangeLog	2013-04-22 15:02:26 UTC (rev 148882)
@@ -1,3 +1,13 @@
+2013-04-22  Mario Sanchez Prada  <[email protected]>
+
+        Update layout test verifying Tab behaves correctly after linking to fragment ID
+        https://bugs.webkit.org/show_bug.cgi?id=114645
+
+        Reviewed by Chris Fleizach.
+
+        * fast/dom/fragment-activation-focuses-target.html: Updated test.
+        * fast/dom/fragment-activation-focuses-target-expected.txt: Updated expectations.
+
 2013-04-22  Mike Fenton  <[email protected]>
 
         [BlackBerry] Add additional datalist support.

Modified: trunk/LayoutTests/fast/dom/fragment-activation-focuses-target-expected.txt (148881 => 148882)


--- trunk/LayoutTests/fast/dom/fragment-activation-focuses-target-expected.txt	2013-04-22 14:26:28 UTC (rev 148881)
+++ trunk/LayoutTests/fast/dom/fragment-activation-focuses-target-expected.txt	2013-04-22 15:02:26 UTC (rev 148882)
@@ -11,6 +11,9 @@
 PASS document.activeElement is link1
 Send an enter key event which should also trigger focus to move to the fragment.
 PASS document.activeElement is document.getElementById('fragment1')
+Verify Tab behaves correctly after following the link.
+PASS document.activeElement is document.getElementById('fragment3')
+PASS document.activeElement is document.getElementById('fragment1')
 Activate a link that does not have a focusable fragment and verify focus does not move.
 PASS document.activeElement is link2
 PASS document.activeElement is link2
@@ -21,3 +24,4 @@
 
 fragment1
 fragment2
+fragment3

Modified: trunk/LayoutTests/fast/dom/fragment-activation-focuses-target.html (148881 => 148882)


--- trunk/LayoutTests/fast/dom/fragment-activation-focuses-target.html	2013-04-22 14:26:28 UTC (rev 148881)
+++ trunk/LayoutTests/fast/dom/fragment-activation-focuses-target.html	2013-04-22 15:02:26 UTC (rev 148882)
@@ -12,6 +12,7 @@
 
 <div id="fragment1" name="fragment1" tabindex="0">fragment1</div>
 <div id="fragment2" name="fragment2">fragment2</div>
+<div id="fragment3" name="fragment3" tabindex="0">fragment3</div>
 
 <script>
 
@@ -34,6 +35,12 @@
   debug("Send an enter key event which should also trigger focus to move to the fragment.");
   eventSender.keyDown("\r");
   shouldBe("document.activeElement", "document.getElementById('fragment1')");
+
+  debug("Verify Tab behaves correctly after following the link.");
+  eventSender.keyDown("\t");
+  shouldBe("document.activeElement", "document.getElementById('fragment3')");
+  eventSender.keyDown("\t", ["shiftKey"]);
+  shouldBe("document.activeElement", "document.getElementById('fragment1')");
 }
 
 debug("Activate a link that does not have a focusable fragment and verify focus does not move.");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to