From: hayato@chromium.org Date: Thu, 29 Sep 2011 03:57:39 +0000 (+0000) Subject: Add a test for accesskey in regard to iframes. X-Git-Tag: 070512121124~23397 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=061d8598ecb2b1a4c28ee6874e3a94fae65912b2;p=profile%2Fivi%2Fwebkit-efl.git Add a test for accesskey in regard to iframes. https://bugs.webkit.org/show_bug.cgi?id=67642 Reviewed by Hajime Morita. To catch any improvement of accesskey behavior in regard to iframes, it'd be nice to add a test to verify the current behavior. * fast/dom/access-key-iframe-expected.txt: Added. * fast/dom/access-key-iframe.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96292 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index 952a6c8..cabdf04 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,16 @@ +2011-09-28 Hayato Ito + + Add a test for accesskey in regard to iframes. + https://bugs.webkit.org/show_bug.cgi?id=67642 + + Reviewed by Hajime Morita. + + To catch any improvement of accesskey behavior in regard to + iframes, it'd be nice to add a test to verify the current behavior. + + * fast/dom/access-key-iframe-expected.txt: Added. + * fast/dom/access-key-iframe.html: Added. + 2011-09-28 Kent Tamura REGRESSION(r93858): Can't type anything into input elements when maxlength is greater than 2^31 diff --git a/LayoutTests/fast/dom/access-key-iframe-expected.txt b/LayoutTests/fast/dom/access-key-iframe-expected.txt new file mode 100644 index 0000000..a8bfb71 --- /dev/null +++ b/LayoutTests/fast/dom/access-key-iframe-expected.txt @@ -0,0 +1,22 @@ +Tests to ensure that accesskey works in iframes and other iframes don't effect current accesskey maps. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + + +Accesskeys should work in an iframe. "iframe1" has both "inputG" and "inputH" (accesskey="c") elements. +PASS iframe1.contentDocument.getElementById("inputG").focus(); pressAccessKey("c"); targetsOfFocusEvents is ["inputG", "inputH"] + +"inputC" element has an accessKey of "a" and other iframes also have elements with accesskey of "a". An acccesskey should not be overridden by other iframes, so "inputC" should be selected. +PASS document.getElementById("inputB").focus(); pressAccessKey("a"); targetsOfFocusEvents; is ["inputB", "inputC"] + +A child iframe, iframe1, has an element with accesskey of "d", which should be ignored. +PASS document.getElementById("inputB").focus(); pressAccessKey("d"); targetsOfFocusEvents is ["inputB"] + +An accesskey defined in an ancestor iframe should be ignored. "inputD" has accesskey of "b", which should not be selected from descendant iframes, iframe1 and iframe2. +PASS iframe1.contentDocument.getElementById("inputG").focus(); pressAccessKey("b"); targetsOfFocusEvents is ["inputG"] +PASS iframe2.contentDocument.getElementById("inputK").focus(); pressAccessKey("b"); targetsOfFocusEvents is ["inputK"] +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/dom/access-key-iframe.html b/LayoutTests/fast/dom/access-key-iframe.html new file mode 100644 index 0000000..4baa233 --- /dev/null +++ b/LayoutTests/fast/dom/access-key-iframe.html @@ -0,0 +1,91 @@ + + + + +

+
+

+
+
+
+