[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
yael.aharon at nokia.com
yael.aharon at nokia.com
Wed Dec 22 16:20:44 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 09ec4f367282446aac6e854cd7dce8857027835d
Author: yael.aharon at nokia.com <yael.aharon at nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Nov 22 14:57:15 2010 +0000
2010-11-22 Yael Aharon <yael.aharon at nokia.com>
Reviewed by Antonio Gomes.
Spatial Navigation: Additional tests.
https://bugs.webkit.org/show_bug.cgi?id=49604
* fast/events/spatial-navigation/snav-div-overflow-scrol-hidden-expected.txt: Added.
* fast/events/spatial-navigation/snav-div-overflow-scrol-hidden.html: Added.
* fast/events/spatial-navigation/snav-z-index-expected.txt: Added.
* fast/events/spatial-navigation/snav-z-index.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 9d4b0e7..b78d98b 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,15 @@
+2010-11-22 Yael Aharon <yael.aharon at nokia.com>
+
+ Reviewed by Antonio Gomes.
+
+ Spatial Navigation: Additional tests.
+ https://bugs.webkit.org/show_bug.cgi?id=49604
+
+ * fast/events/spatial-navigation/snav-div-overflow-scrol-hidden-expected.txt: Added.
+ * fast/events/spatial-navigation/snav-div-overflow-scrol-hidden.html: Added.
+ * fast/events/spatial-navigation/snav-z-index-expected.txt: Added.
+ * fast/events/spatial-navigation/snav-z-index.html: Added.
+
2010-11-22 Anton Muhin <antonm at chromium.org>
Not reviewed. Rebaselining various Win/Linux only deviations.
diff --git a/LayoutTests/fast/events/spatial-navigation/snav-div-overflow-scrol-hidden-expected.txt b/LayoutTests/fast/events/spatial-navigation/snav-div-overflow-scrol-hidden-expected.txt
new file mode 100644
index 0000000..366481a
--- /dev/null
+++ b/LayoutTests/fast/events/spatial-navigation/snav-div-overflow-scrol-hidden-expected.txt
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f2"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f3"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f3"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f4"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f4"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f5"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f6"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "f9"
+This test is testing that div with overflow:auto would scroll, by div with overflow:hidden would not.
diff --git a/LayoutTests/fast/events/spatial-navigation/snav-div-overflow-scrol-hidden.html b/LayoutTests/fast/events/spatial-navigation/snav-div-overflow-scrol-hidden.html
new file mode 100644
index 0000000..24132ea
--- /dev/null
+++ b/LayoutTests/fast/events/spatial-navigation/snav-div-overflow-scrol-hidden.html
@@ -0,0 +1,70 @@
+<html>
+<head>
+ <script src="../../js/resources/js-test-pre.js"></script>
+ <script src="resources/spatial-navigation-utils.js"></script>
+ <script type="application/javascript">
+
+ var resultMap = [
+ ["Down", "f2"],
+ ["Down", "f3"],
+ ["Down", "f3"],
+ ["Down", "f4"],
+ ["Down", "f4"],
+ ["Down", "f5"],
+ ["Down", "f6"],
+ ["Down", "f9"],
+ ["DONE", "DONE"]
+ ];
+
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.setSpatialNavigationEnabled(true);
+ layoutTestController.overridePreference("WebKitTabToLinksPreferenceKey", 1);
+ layoutTestController.waitUntilDone();
+ }
+
+ function runTest()
+ {
+ // starting the test itself: get to a known place.
+ document.getElementById("start").focus();
+
+ initTest(resultMap, testCompleted);
+ }
+
+ function testCompleted()
+ {
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }
+
+ window.onload = runTest;
+ </script>
+ <script src="../js/resources/js-test-post.js"></script>
+ <style>
+ div.overflow1 {overflow:auto; height:100px; width:200px; border: 1px solid cyan;}
+ div.overflow2 {overflow:hidden; height:80px; width:150px; border: 1px solid cyan;}
+ div:focus { outline: 2px solid red;}
+ </style>
+</head>
+
+<body>
+<div class="overflow1">
+<div><a href="#" id="start"><img src="resources/green.png" width=40px; height=40px;></a></div>
+<div><a href="#" id="f2"><img src="resources/green.png" width=50px; height=40px;></a></div>
+<div><a href="#" id="f3"><img src="resources/green.png" width=40px; height=40px;></a></div>
+<br>
+<div><a href="#" id="f4"><img src="resources/green.png" width=50px; height=40px;></a></div>
+<div class="overflow2">
+<div><a href="#" id="f5"><img src="resources/green.png" width=40px; height=40px;></a></div>
+<div><a href="#" id="f6"><img src="resources/green.png" width=50px; height=40px;></a></div>
+<br>
+<div><a href="#" id="f7"><img src="resources/green.png" width=40px; height=40px;></a></div>
+<div><a href="#" id="f8"><img src="resources/green.png" width=50px; height=40px;></a></div>
+</div><br>
+<div><a href="#" id="f9"><img src="resources/green.png" width=40px; height=40px;></a></div>
+</div></div>
+<div id="console"></div>
+This test is testing that div with overflow:auto would scroll, by div with overflow:hidden would not.
+</body>
+</html>
+
diff --git a/LayoutTests/fast/events/spatial-navigation/snav-z-index-expected.txt b/LayoutTests/fast/events/spatial-navigation/snav-z-index-expected.txt
new file mode 100644
index 0000000..cb092ee
--- /dev/null
+++ b/LayoutTests/fast/events/spatial-navigation/snav-z-index-expected.txt
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+PASS gFocusedDocument.activeElement.getAttribute("id") is "p11"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "p12"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "s25"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "p12"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "s13"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "s12"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "p11"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "p21"
+PASS gFocusedDocument.activeElement.getAttribute("id") is "start"
+This test is testing that we prefer focusable elements with absolute positioning over other elements.
diff --git a/LayoutTests/fast/events/spatial-navigation/snav-z-index.html b/LayoutTests/fast/events/spatial-navigation/snav-z-index.html
new file mode 100644
index 0000000..ddecbf6
--- /dev/null
+++ b/LayoutTests/fast/events/spatial-navigation/snav-z-index.html
@@ -0,0 +1,80 @@
+<html>
+ <head>
+ <script src="../../js/resources/js-test-pre.js"></script>
+ <script src="resources/spatial-navigation-utils.js"></script>
+ <script type="application/javascript">
+
+ var resultMap = [
+ ["Down", "p11"],
+ ["Down", "p12"],
+ ["Down", "s25"],
+ ["Up", "p12"],
+ ["Left", "s13"],
+ ["Up", "s12"],
+ ["Right", "p11"],
+ ["Right", "p21"],
+ ["Up", "start"],
+ ["DONE", "DONE"]
+ ];
+
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.setSpatialNavigationEnabled(true);
+ layoutTestController.overridePreference("WebKitTabToLinksPreferenceKey", 1);
+ layoutTestController.waitUntilDone();
+ }
+
+ function runTest()
+ {
+ // starting the test itself: get to a known place.
+ document.getElementById("start").focus();
+
+ initTest(resultMap, testCompleted);
+ }
+
+ function testCompleted()
+ {
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }
+
+ window.onload = runTest;
+ </script>
+ <script src="../js/resources/js-test-post.js"></script>
+ <style>
+ div.simple { border: 3px solid red;}
+ div.simple:focus { border: 3px solid gray;}
+ div.positioned { border: 3px solid blue;}
+ div.positioned:focus{ border: 3px solid gray;}
+ #popup {position: absolute; top:120; left:240; border: 8px solid black; z-index:1000}
+ </style>
+ </head>
+<body id="some-content" xmlns="http://www.w3.org/1999/xhtml" style="padding:20px">
+<div id="popup">
+<table><tr><td>
+<div tabindex="1" id="p11" class="positioned"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="2" id="p12" class="positioned"><img src="resources/green.png" width=160px height=60px></div>
+</td><td>
+<div tabindex="1" id="p21" class="positioned"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="2" id="p22" class="positioned"><img src="resources/green.png" width=160px height=60px></div>
+</td></tr></table>
+</div>
+
+<table>
+<tr><td>
+<div tabindex="1" id="s11" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="2" id="s12" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="3" id="s13" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="4" id="s14" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="5" id="s15" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+</td><td>
+<div tabindex="1" id="start" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+<div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=160px height=60px></div>
+</td></tr></table>
+<div id="console"></div>
+This test is testing that we prefer focusable elements with absolute positioning over other elements.
+</body>
+</html>
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list