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

Side by Side Diff: LayoutTests/fast/spatial-navigation/snav-only-clipped-overflow-content.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test ensures the content overflow traversal correctness of spatial navi gation: 3 This test ensures the content overflow traversal correctness of spatial navi gation:
4 if an element if clipped overflow in a scrollable container (e.g. <div>), 4 if an element if clipped overflow in a scrollable container (e.g. <div>),
5 scroll-in-direction should happen in the container box, not on the outer vie w. 5 scroll-in-direction should happen in the container box, not on the outer vie w.
6 6
7 * Pre-conditions: 7 * Pre-conditions:
8 1) DRT support for spatial navigation enable/disable. 8 1) DRT support for spatial navigation enable/disable.
9 9
10 * Navigation steps: 10 * Navigation steps:
11 1) Loads this page, focus goes to "start" automatically. 11 1) Loads this page, focus goes to "start" automatically.
12 2) Try to move focus down to the visible focusable element in 12 2) Try to move focus down to the visible focusable element in
13 scrollable div. 13 scrollable div.
14 14
15 * Expected results: There should have to a scroll action in the container 15 * Expected results: There should have to a scroll action in the container
16 (div) as an attempt to make the clipped overflow node visible and accessible 16 (div) as an attempt to make the clipped overflow node visible and accessible
17 via spatial navigation. --> 17 via spatial navigation. -->
18 <head> 18 <head>
19 <style type="text/css"> 19 <style type="text/css">
20 div.scroll { 20 div.scroll {
21 height: 200px; 21 height: 200px;
22 width: 300px; 22 width: 300px;
23 overflow: auto; 23 overflow: auto;
24 border: 1px solid #666; 24 border: 1px solid #666;
25 background-color: #ccc; 25 background-color: #ccc;
26 padding: 8px; 26 padding: 8px;
27 } 27 }
28 </style> 28 </style>
29 29
30 <script src="../js/resources/js-test-pre.js"></script> 30 <script src="../../resources/js-test.js"></script>
31 <script src="resources/spatial-navigation-utils.js"></script> 31 <script src="resources/spatial-navigation-utils.js"></script>
32 <script type="application/javascript"> 32 <script type="application/javascript">
33 33
34 var resultMap = [ 34 var resultMap = [
35 ["Down", "start"], 35 ["Down", "start"],
36 ["DONE", "DONE"] 36 ["DONE", "DONE"]
37 ]; 37 ];
38 38
39 if (window.testRunner) { 39 if (window.testRunner) {
40 testRunner.dumpAsText(); 40 testRunner.dumpAsText();
(...skipping 26 matching lines...) Expand all
67 <p>That is is a normal <a id="start" href="a">link</a>.</p> 67 <p>That is is a normal <a id="start" href="a">link</a>.</p>
68 <div class="scroll" id="div"> 68 <div class="scroll" id="div">
69 <p>This is a scrollable Div created with the CSS property overflow.</p> 69 <p>This is a scrollable Div created with the CSS property overflow.</p>
70 <br><br><br><br><br><br><br><br> 70 <br><br><br><br><br><br><br><br>
71 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</ p> 71 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</ p>
72 </div> 72 </div>
73 <p>And this is another normal <a id="2" href="a">link_2</a>.</p> 73 <p>And this is another normal <a id="2" href="a">link_2</a>.</p>
74 <div id="console"></div> 74 <div id="console"></div>
75 </body> 75 </body>
76 </html> 76 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/spatial-navigation/snav-multiple-select.html ('k') | LayoutTests/fast/spatial-navigation/snav-radio.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698