File: dom_test.html

package info (click to toggle)
aseba-plugin-blockly 20180211%2Bgit-2
  • links: PTS
  • area: non-free
  • in suites: buster
  • size: 64,472 kB
  • sloc: xml: 7,976; python: 2,314; sh: 261; lisp: 24; makefile: 10
file content (118 lines) | stat: -rw-r--r-- 3,634 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html><!-- DO NOT EDIT. This file auto-generated by generate_closure_unit_tests.js --><!--
Copyright 2017 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
--><html><head><meta charset="UTF-8">

<script src="../base.js"></script>

<script>goog.require('goog.dom.dom_test');</script>
<title>Closure Unit Tests - goog.dom.dom_test</title><!--
Copyright 2017 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<style type="text/css">
#styleTest1 {
  width:120px;font-weight:bold;
}
</style>
</head><body><div>
  abc <i>def</i> <s id="offsetParent1">g <b>h <i id="offsetTest1">ij</i> kl</b> mn</s> opq
</div>


<div id="testEl">
  <span>Test Element</span>
</div>

<div><div><div id="testEl2"></div></div></div>

<!-- classbefore and classafter are for making sure that getElementsByClass
     works when multiple classes are specified. -->
<div id="span-container">
  <span id="span1" class="classbefore test1"></span>
  <span id="span2" class="test1"></span>
  <span id="span3" class="test2"></span>
  <span id="span4" class="test3"></span>
  <span id="span5" class="test1 classafter"></span>
</div>

<div class="mixedCaseClass"></div>

<p id="p1"></p>

<div id="styleTest1"></div>
<div id="styleTest2" style="width:100px;font-weight:bold"></div>
<div id="styleTest3"></div>

<!-- Paragraph to test element child and sibling -->
<p id="p2">
  <!-- Comment -->
  a
  <b id="b1">c</b>
  d
  <!-- Comment -->
  e
  <b id="b2">f</b>
  g
  <!-- Comment -->
</p>

<table id="testTable1">
  <tbody><tr>
    <td>&nbsp;
  </td></tr>
</tbody></table>

<iframe name="frame" src="testdata/dom_test_iframe_content.html"></iframe>

<p id="order-test"></p>

<div id="testAncestorDiv" class="ancestorClassA testAncestor">
  <p id="testAncestorP" class="ancestorClassB testAncestor">
    <b id="nestedElement">ancestorTest</b>
  </p>
</div>

<div id="noTabIndex">Test</div>
<div id="tabIndexNegative2" tabindex="-2">Test</div>
<div id="tabIndexNegative1" tabindex="-1">Test</div>
<div id="tabIndex0" tabindex="0">Test</div>
<div id="tabIndex1" tabindex="1">Test</div>
<div id="tabIndex2" tabindex="2">Test</div>

<form>
  <a href="testUrl" id="noTabIndexAnchor">Test</a>
  <input id="noTabIndexInput">
  <textarea id="noTabIndexTextArea">Test</textarea>
  <select id="noTabIndexSelect"><option>Test</option></select>
  <button id="noTabIndexButton">Test</button>
  <button id="negTabIndexButton" tabindex="-1">Test</button>
  <button id="zeroTabIndexButton" tabindex="0">Test</button>
  <button id="posTabIndexButton" tabindex="1">Test</button>
  <button id="disabledNoTabIndexButton" disabled="">Test</button>
  <button id="disabledNegTabIndexButton" disabled="" tabindex="-1">Test</button>
  <button id="disabledZeroTabIndexButton" disabled="" tabindex="0">Test</button>
  <button id="disabledPosTabIndexButton" disabled="" tabindex="1">Test</button>
</form>

<div id="toReplace">Replace Test</div>

<iframe id="iframe"><body></body></iframe>

<div id="myIframeDiv1" style="height:42px;font-size:1px;line-height:0;">hello world</div>
<div id="myIframeDiv2" style="height:23px;font-size:1px;line-height:0;">hello world</div>

<iframe id="myIframe" style="width:400px;height:200px;"></iframe>

<a id="link" href="foo.html">Foo</a>

<svg id="testSvg" width="100" height="100" viewport="0 0 100 100" version="1.0">
  <g id="testG">
    <rect id="testRect" x="10" y="10" width="50" height="50"></rect>
  </g>
</svg>
</body></html>