dom/tests/mochitest/chrome/focus_frameset.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/chrome/focus_frameset.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<html id="outer">
     1.5 +
     1.6 +<script type="application/javascript"
     1.7 +        src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     1.8 +<script>
     1.9 +if (opener)
    1.10 +  SimpleTest.waitForFocus(function () opener.framesetWindowLoaded(window));
    1.11 +// Don't try to call finish() in this frame, since it will get upset that we
    1.12 +// ran no tests.
    1.13 +SimpleTest.waitForExplicitFinish();
    1.14 +</script>
    1.15 +
    1.16 +<frameset rows="30%, 70%">
    1.17 +  <frame src="data:text/html,&lt;html id='f1' &gt;&lt;body id='framebody1'&gt;&lt;input id='f2'&gt;&lt;body&gt;&lt;/html&gt;">
    1.18 +  <frameset cols="30%, 33%, 34%">
    1.19 +    <frame src="data:text/html,&lt;html id='f3'&gt;&lt;body id='framebody2'&gt;&lt;input id='f4'&gt;&lt;body&gt;&lt;/html&gt;">
    1.20 +    <frame src="data:text/html,&lt;html id='f5'&gt;&lt;body id='framebody3'&gt;&lt;input id='f6' tabindex='2'&gt;&lt;body&gt;&lt;/html&gt;">
    1.21 +    <frame src="data:text/html,&lt;html id='f7'&gt;&lt;body id='framebody4'&gt;&lt;input id='f8'&gt;&lt;body&gt;&lt;/html&gt;">
    1.22 +  </frameset>
    1.23 +  <noframes>
    1.24 +    <input id="unused1"/>
    1.25 +    <input id="unused2" tabindex="1"/>
    1.26 +  </noframes>
    1.27 +</frameset>
    1.28 +
    1.29 +</html>

mercurial