diff options
author | apavlov@chromium.org <apavlov@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2013-04-18 14:02:23 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2013-04-18 14:02:23 +0000 |
commit | 2cde36ff557b20cec5985cdeefa90c806f5b72ac (patch) | |
tree | d779d8a828faf567b06a383b494cefd9e15cc636 /third_party/WebKit/LayoutTests/fast/spatial-navigation | |
parent | 50745dacf94a1d94456008de318db6d15f8930f6 (diff) | |
download | chromium_src-2cde36ff557b20cec5985cdeefa90c806f5b72ac.zip chromium_src-2cde36ff557b20cec5985cdeefa90c806f5b72ac.tar.gz chromium_src-2cde36ff557b20cec5985cdeefa90c806f5b72ac.tar.bz2 |
Revert 148647 "Remove frame flattening support as Chromium has n..."
Lots of tests have started failing on all bots.
> Remove frame flattening support as Chromium has no intention of using it
>
> Chromium does not use the frame flattening code on any platform, though it used
> to use it for frameset flattening on Android, but that is no longer the case.
>
> As there is no intention of ever using it, it should be removed.
>
> Committed on behalf of Kenneth Rohde Christiansen <kenneth.r.christiansen@intel.com>.
>
> BUG=231898
>
> Review URL: https://codereview.chromium.org/13963006
TBR=mkwst@chromium.org
Review URL: https://codereview.chromium.org/14057012
git-svn-id: svn://svn.chromium.org/blink/trunk@148649 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/spatial-navigation')
2 files changed, 84 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple-expected.txt b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple-expected.txt new file mode 100644 index 0000000..edce0e9b --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple-expected.txt @@ -0,0 +1,10 @@ +a + +e +PASS gFocusedDocument.activeElement.getAttribute("id") is "1" +PASS gFocusedDocument.activeElement.getAttribute("id") is "2" +PASS gFocusedDocument.activeElement.getAttribute("id") is "end" +PASS gFocusedDocument.activeElement.getAttribute("id") is "2" +PASS gFocusedDocument.activeElement.getAttribute("id") is "1" +PASS gFocusedDocument.activeElement.getAttribute("id") is "start" + diff --git a/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple.html b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple.html new file mode 100644 index 0000000..9d11b2c --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple.html @@ -0,0 +1,74 @@ +<html> + <!-- + This test ensures the cross iframe traversal correctness of Spatial Navigation + algorithm: focusable elements in an flattened <iframe> should be accessible. + + * Pre-conditions: + 1) DRT support for Spatial Navigation enable/disable. + 2) DRT support for Frame flattening enable/disable. + + * Navigation steps: + 1) Loads this page, focus goes to "start" automatically. + 2) Focus moves along the elements in the two iframes in the + Web page, eventually going to outer an southward link, but + going back to the iframe on the top later on. + --> + <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", "1"], + ["Down", "2"], + ["Down", "end"], + ["Up", "2"], + ["Up", "1"], + ["Up", "start"], + ["DONE", "DONE"] + ]; + + if (window.testRunner) { + testRunner.dumpAsText(); + testRunner.setSpatialNavigationEnabled(true); + testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); + testRunner.waitUntilDone(); + } + + function runTest() + { + if (window.internals) + internals.settings.setFrameFlatteningEnabled(true); + + // starting the test itself: get to a known place. + document.getElementById("start").focus(); + + initTest(resultMap, testCompleted); + } + + function testCompleted() + { + if (window.testRunner) + testRunner.notifyDone(); + } + + window.onload = runTest; + </script> + <script src="js/resources/js-test-post.js"></script> + </head> + <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> + <div><a id="start" href="a">a</a></div> + + <iframe width="80" height="80" scrolling="auto" src="data:text/html, + <body> + <a id='1' href='a'>b</a> + <div style='margin-top:120px'> + <a id='2' href='a'>d</a> + </div> + </body> + "></iframe><br> + + <div><a id="end" href="a">e</a></div> + <div id="console"></div> + </body> +</html> |