- a/LayoutTests/ChangeLog +21 lines
Lines 1-8 a/LayoutTests/ChangeLog_sec1
1
2010-05-05  Antonio Gomes  <tonikitoo@webkit.org>
2
3
        Reviewed by NOBODY (OOPS!).
4
5
        Spatial Navigation: use data url in layout tests
6
        https://bugs.webkit.org/show_bug.cgi?id=38584
7
8
        In order to make Spatial Navigation layout tests more readable, patch
9
        changes the use or src=resources/iframeXXX.html by inlined sources via
10
        data uri schema.
11
12
        It is a polishment.
13
14
        * fast/events/spatial-navigation/resources/iframe.html: Removed.
15
        * fast/events/spatial-navigation/resources/iframe2.html: Removed.
16
        * fast/events/spatial-navigation/resources/iframe3.html: Removed.
17
        * fast/events/spatial-navigation/resources/iframe4.html: Removed.
18
        * fast/events/spatial-navigation/snav-iframe-no-focusable-content.html:
19
        * fast/events/spatial-navigation/snav-iframe-no-scrollable-content.html:
20
        * fast/events/spatial-navigation/snav-iframe-with-offscreen-focusable-element.html:
21
1
2010-04-20  Antonio Gomes  <tonikitoo@webkit.org>
22
2010-04-20  Antonio Gomes  <tonikitoo@webkit.org>
2
23
3
        Reviewed by NOBODY (OOPS!).
24
        Reviewed by NOBODY (OOPS!).
4
25
5
        Spatial Navigation: make it work with focusable elements in overflow content
26
        Spatial Navigation: make it work with focusable elements in overflow content
6
        https://bugs.webkit.org/show_bug.cgi?id=36463
27
        https://bugs.webkit.org/show_bug.cgi?id=36463
7
28
8
        * fast/events/spatial-navigation/snav-div-scrollable-but-without-focusable-content-expected.txt: Added.
29
        * fast/events/spatial-navigation/snav-div-scrollable-but-without-focusable-content-expected.txt: Added.
- a/LayoutTests/fast/events/spatial-navigation/resources/iframe.html -10 lines
Lines 1-10 a/LayoutTests/fast/events/spatial-navigation/resources/iframe.html_sec1
1
<html>
2
  <body>
3
    <a id="1" href="a">b</a><br>
4
    <a id="2" href="a">c</a><br>
5
    <a id="3" href="a">d</a><br>
6
    <div style="margin-left:80px" >
7
      <a id="7" href="a">e</a>
8
    </div>
9
  </body>
10
</html>
- a/LayoutTests/fast/events/spatial-navigation/resources/iframe2.html -7 lines
Lines 1-7 a/LayoutTests/fast/events/spatial-navigation/resources/iframe2.html_sec1
1
<html>
2
  <body>
3
    <a id="4" href="a">g</a>
4
    <a id="5" href="a">h</a>
5
    <a id="6" href="a">i</a>
6
  </body>
7
</html>
- a/LayoutTests/fast/events/spatial-navigation/resources/iframe3.html -8 lines
Lines 1-8 a/LayoutTests/fast/events/spatial-navigation/resources/iframe3.html_sec1
1
<html>
2
  <body>
3
    <a id="1" href="a">b</a>
4
    <div style="margin-top:120px">
5
      <a id="2" href="a">d</a>
6
    </div>
7
  </body>
8
</html>
- a/LayoutTests/fast/events/spatial-navigation/resources/iframe4.html -8 lines
Lines 1-8 a/LayoutTests/fast/events/spatial-navigation/resources/iframe4.html_sec1
1
<html>
2
  <body>
3
    <div style="margin-top:120px">
4
      <p>This frame has some text and no focusable element ...</a>
5
    </div>
6
    <p>... and some more text ...</a>
7
  </body>
8
</html>
- a/LayoutTests/fast/events/spatial-navigation/snav-iframe-no-focusable-content.html -3 / +20 lines
Lines 44-57 a/LayoutTests/fast/events/spatial-navigation/snav-iframe-no-focusable-content.html_sec1
44
    }
44
    }
45
45
46
    window.onload = runTest;
46
    window.onload = runTest;
47
    </script>
47
    </script>
48
    <script src="../js/resources/js-test-post.js"></script>
48
    <script src="../js/resources/js-test-post.js"></script>
49
  </head>
49
  </head>
50
  <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
50
  <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
51
    <div><a id="start" href="a">a</a></div>
51
    <div><a id="start" href="a">a</a></div>
52
    <iframe src="resources/iframe4.html" width="80" height="80" scrolling="auto"></iframe><br>
52
53
    <iframe src="resources/iframe4.html" scrolling="auto"></iframe><br>
53
    <iframe width="80" height="80" scrolling="auto" src="data:text/html,
54
    <div><a id="end" href="a">e</a></div>
54
      <body>
55
        <div style='margin-top:120px'>
56
          <p>This frame has some text and no focusable element ...</a>
57
        </div>
58
        <p>... and some more text ...</a>
59
      </body>
60
    "></iframe><br>
61
62
    <iframe scrolling="auto" src="data:text/html,
63
      <body>
64
        <div style='margin-top:120px'>
65
          <p>This frame has some text and no focusable element ...</a>
66
        </div>
67
        <p>... and some more text ...</a>
68
      </body>
69
    "></iframe><br>
70
71
    <a id="end" href="a">e</a>
55
    <div id="console"></div>
72
    <div id="console"></div>
56
  </body>
73
  </body>
57
</html>
74
</html>
- a/LayoutTests/fast/events/spatial-navigation/snav-iframe-no-scrollable-content.html -3 / +21 lines
Lines 56-69 a/LayoutTests/fast/events/spatial-navigation/snav-iframe-no-scrollable-content.html_sec1
56
    }
56
    }
57
57
58
    window.onload = runTest;
58
    window.onload = runTest;
59
    </script>
59
    </script>
60
    <script src="../js/resources/js-test-post.js"></script>
60
    <script src="../js/resources/js-test-post.js"></script>
61
  </head>
61
  </head>
62
  <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
62
  <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
63
    <div><a id="start" href="a">a</a></div>
63
    <div><a id="start" href="a">a</a></div>
64
    <iframe src="resources/iframe.html"></iframe><br>
64
65
    <iframe src="resources/iframe2.html"></iframe>
65
    <iframe src="data:text/html,
66
    <div><a id="end" href="a">a</a></div>
66
      <body>
67
        <a id='1' href='a'>b</a><br>
68
        <a id='2' href='a'>c</a><br>
69
        <a id='3' href='a'>d</a><br>
70
        <div style='margin-left:80px'>
71
          <a id='7' href='a'>e</a>
72
        </div>
73
      </body>
74
    "></iframe><br>
75
76
    <iframe src="data:text/html,
77
      <body>
78
        <a id='4' href='a'>g</a>
79
        <a id='5' href='a'>h</a>
80
        <a id='6' href='a'>i</a>
81
      </body>
82
    "></iframe><br>
83
84
    <a id="end" href="a">a</a>
67
    <div id="console"></div>
85
    <div id="console"></div>
68
  </body>
86
  </body>
69
</html>
87
</html>
- a/LayoutTests/fast/events/spatial-navigation/snav-iframe-with-offscreen-focusable-element.html -2 / +10 lines
Lines 54-66 a/LayoutTests/fast/events/spatial-navigation/snav-iframe-with-offscreen-focusable-element.html_sec1
54
    }
54
    }
55
55
56
    window.onload = runTest;
56
    window.onload = runTest;
57
    </script>
57
    </script>
58
    <script src="../js/resources/js-test-post.js"></script>
58
    <script src="../js/resources/js-test-post.js"></script>
59
  </head>
59
  </head>
60
  <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
60
  <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
61
    <div><a id="start" href="a">a</a></div>
61
    <div><a id="start" href="a">a</a></div>
62
    <iframe src="resources/iframe3.html" width="80" height="80" scrolling="auto"></iframe><br>
62
63
    <iframe width="80" height="80" scrolling="auto" src="data:text/html,
64
      <body>
65
        <a id='1' href='a'>b</a>
66
        <div style='margin-top:120px'>
67
          <a id='2' href='a'>d</a>
68
        </div>
69
      </body>
70
    "></iframe><br>
71
63
    <div><a id="end" href="a">e</a></div>
72
    <div><a id="end" href="a">e</a></div>
64
    <div id="console"></div>
73
    <div id="console"></div>
65
  </body>
74
  </body>
66
</html>
75
</html>
67
- 

Return to Bug 38584