Debian Codegraph @

closure-library/closure/goog/dom/dom_test.html

raw
1 <!DOCTYPE html><!-- DO NOT EDIT. This file auto-generated by generate_closure_unit_tests.js --><!--
2 Copyright 2017 The Closure Library Authors. All Rights Reserved.
3
4 Use of this source code is governed by the Apache License, Version 2.0.
5 See the COPYING file for details.
6 --><html><head><meta charset="UTF-8">
7
8 <script src="../base.js"></script>
9
10 <script>goog.require('goog.dom.dom_test');</script>
11 <title>Closure Unit Tests - goog.dom.dom_test</title><!--
12 Copyright 2017 The Closure Library Authors. All Rights Reserved.
13
14 Use of this source code is governed by the Apache License, Version 2.0.
15 See the COPYING file for details.
16 -->
17 <style type="text/css">
18 #styleTest1 {
19 width:120px;font-weight:bold;
20 }
21 </style>
22 </head><body><div>
23 abc <i>def</i> <s id="offsetParent1">g <b>h <i id="offsetTest1">ij</i> kl</b> mn</s> opq
24 </div>
25
26
27 <div id="testEl">
28 <span>Test Element</span>
29 </div>
30
31 <div><div><div id="testEl2"></div></div></div>
32
33 <!-- classbefore and classafter are for making sure that getElementsByClass
34 works when multiple classes are specified. -->
35 <div id="span-container">
36 <span id="span1" class="classbefore test1"></span>
37 <span id="span2" class="test1"></span>
38 <span id="span3" class="test2"></span>
39 <span id="span4" class="test3"></span>
40 <span id="span5" class="test1 classafter"></span>
41 </div>
42
43 <div class="mixedCaseClass"></div>
44
45 <p id="p1"></p>
46
47 <div id="styleTest1"></div>
48 <div id="styleTest2" style="width:100px;font-weight:bold"></div>
49 <div id="styleTest3"></div>
50
51 <!-- Paragraph to test element child and sibling -->
52 <p id="p2">
53 <!-- Comment -->
54 a
55 <b id="b1">c</b>
56 d
57 <!-- Comment -->
58 e
59 <b id="b2">f</b>
60 g
61 <!-- Comment -->
62 </p>
63
64 <table id="testTable1">
65 <tbody><tr>
66 <td>&nbsp;
67 </td></tr>
68 </tbody></table>
69
70 <iframe name="frame" src="testdata/dom_test_iframe_content.html"></iframe>
71
72 <p id="order-test"></p>
73
74 <div id="testAncestorDiv" class="ancestorClassA testAncestor">
75 <p id="testAncestorP" class="ancestorClassB testAncestor">
76 <b id="nestedElement">ancestorTest</b>
77 </p>
78 </div>
79
80 <div id="noTabIndex">Test</div>
81 <div id="tabIndexNegative2" tabindex="-2">Test</div>
82 <div id="tabIndexNegative1" tabindex="-1">Test</div>
83 <div id="tabIndex0" tabindex="0">Test</div>
84 <div id="tabIndex1" tabindex="1">Test</div>
85 <div id="tabIndex2" tabindex="2">Test</div>
86
87 <form>
88 <a href="testUrl" id="noTabIndexAnchor">Test</a>
89 <input id="noTabIndexInput">
90 <textarea id="noTabIndexTextArea">Test</textarea>
91 <select id="noTabIndexSelect"><option>Test</option></select>
92 <button id="noTabIndexButton">Test</button>
93 <button id="negTabIndexButton" tabindex="-1">Test</button>
94 <button id="zeroTabIndexButton" tabindex="0">Test</button>
95 <button id="posTabIndexButton" tabindex="1">Test</button>
96 <button id="disabledNoTabIndexButton" disabled="">Test</button>
97 <button id="disabledNegTabIndexButton" disabled="" tabindex="-1">Test</button>
98 <button id="disabledZeroTabIndexButton" disabled="" tabindex="0">Test</button>
99 <button id="disabledPosTabIndexButton" disabled="" tabindex="1">Test</button>
100 </form>
101
102 <div id="toReplace">Replace Test</div>
103
104 <iframe id="iframe"><body></body></iframe>
105
106 <div id="myIframeDiv1" style="height:42px;font-size:1px;line-height:0;">hello world</div>
107 <div id="myIframeDiv2" style="height:23px;font-size:1px;line-height:0;">hello world</div>
108
109 <iframe id="myIframe" style="width:400px;height:200px;"></iframe>
110
111 <a id="link" href="foo.html">Foo</a>
112
113 <svg id="testSvg" width="100" height="100" viewport="0 0 100 100" version="1.0">
114 <g id="testG">
115 <rect id="testRect" x="10" y="10" width="50" height="50"></rect>
116 </g>
117 </svg>
118 </body></html>