Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple.html

Issue 14614007: Remove frame flattening from rendering code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: better. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <!--
3 This test ensures the cross iframe traversal correctness of Spatial Navigati on
4 algorithm: focusable elements in an flattened <iframe> should be accessible.
5
6 * Pre-conditions:
7 1) DRT support for Spatial Navigation enable/disable.
8 2) DRT support for Frame flattening enable/disable.
9
10 * Navigation steps:
11 1) Loads this page, focus goes to "start" automatically.
12 2) Focus moves along the elements in the two iframes in the
13 Web page, eventually going to outer an southward link, but
14 going back to the iframe on the top later on.
15 -->
16 <head>
17 <script src="../js/resources/js-test-pre.js"></script>
18 <script src="resources/spatial-navigation-utils.js"></script>
19 <script type="application/javascript">
20
21 var resultMap = [
22 ["Down", "1"],
23 ["Down", "2"],
24 ["Down", "end"],
25 ["Up", "2"],
26 ["Up", "1"],
27 ["Up", "start"],
28 ["DONE", "DONE"]
29 ];
30
31 if (window.testRunner) {
32 testRunner.dumpAsText();
33 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
34 window.internals.settings.setSpatialNavigationEnabled(true);
35 testRunner.waitUntilDone();
36 }
37
38 function runTest()
39 {
40 if (window.internals)
41 internals.settings.setFrameFlatteningEnabled(true);
42
43 // starting the test itself: get to a known place.
44 document.getElementById("start").focus();
45
46 initTest(resultMap, testCompleted);
47 }
48
49 function testCompleted()
50 {
51 if (window.testRunner)
52 testRunner.notifyDone();
53 }
54
55 window.onload = runTest;
56 </script>
57 <script src="js/resources/js-test-post.js"></script>
58 </head>
59 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
60 <div><a id="start" href="a">a</a></div>
61
62 <iframe width="80" height="80" scrolling="auto" src="data:text/html,
63 <body>
64 <a id='1' href='a'>b</a>
65 <div style='margin-top:120px'>
66 <a id='2' href='a'>d</a>
67 </div>
68 </body>
69 "></iframe><br>
70
71 <div><a id="end" href="a">e</a></div>
72 <div id="console"></div>
73 </body>
74 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-iframe-flattening-simple-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698