Cross Reference: /yui3/src/dom/tests/dom-base.html
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>DOM Test Suite</title>
<script type="text/javascript" src="/build/yui/yui.js"></script>
<script type="text/javascript" src="dom-core-test.js"></script>
<script type="text/javascript" src="dom-class-test.js"></script>
<script type="text/javascript" src="dom-size-test.js"></script>
<script type="text/javascript" src="dom-deprecated-test.js"></script>
<script type="text/javascript">
YUI({
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
}).use('test-console', 'test', 'dom-core-test', 'dom-class-test', 'dom-size-test', 'dom-deprecated-test', function (Y) {
new Y.Test.Console().render();
Y.Test.Runner.masterSuite.name = 'Dom Test Suite';
Y.Test.Runner.run();
});
</script>
<style>
h1, h2, h3, h4, h5, h6, p, ul, ol, li {
Xmargin:0;
Xpadding:0;
}
form {
width: 30em;
}
#doc {
border:5px solid #000;
margin:10px;
padding:10px;
}
#hd {
background:#ccc;
}
#foo {
float:left; /* required for getStyle test */
}
#ft {
opacity: 0.75;
}
.yui-skin-sam .yui-console-entry-cat {
color: white;
font-weight: bold;
}
.yui-skin-sam .yui-console-entry-src,
.yui-skin-sam .yui-console-entry-time {
display: none;
}
.yui-skin-sam .yui-console-entry {
}
.yui-skin-sam .yui-console-entry-pass .yui-console-entry-content {
text-align:right;
}
.yui-skin-sam .yui-console-entry-pass .yui-console-entry-cat {
background-color: green;
}
.yui-skin-sam .yui-console-entry-fail .yui-console-entry-cat {
background-color: red;
}
</style>
</head>
<body class="yui3-skin-sam">
<div id="test-id"></div>
<div id="test-dupe-ids">
<span id="test-dupe-id"></span>
<div id="test-dupe-root">
<span id="test-dupe-id"></span>
<span id="test-dupe-id"></span>
</div>
</div>
<form id="test-names">
<input id="test-name-id1" name="test-name-id2">
<input id="test-name-id2" name="test-name-id1">
<input name="test-names">
<input name="id">
<input id="test-text-value" value="test value">
<input id="test-text-no-value">
<input id="test-text-empty-value" value="">
<label for="id" id="for-id"></label>
<input name="foo" id="id">
<textarea id="test-textarea-value" value="textarea value"></textarea>
<textarea id="test-textarea-no-value"></textarea>
<textarea id="test-textarea-text-value">textarea test</textarea>
<select id="test-select-value">
<option id="test-option-value" value="option value">option text</option>
<option id="test-option-value-text">option text</option>
<option id="test-option-empty-value-text" value="">empty value</option>
<option id="test-option-empty-value" value=""></option>
<option id="test-option-no-value"></option>
</select>
<select id="test-select-no-value">
</select>
<select id="test-select-text-value">
<option>option text</option>
</select>
<select id="test-select-empty-value-text">
<option value="">option text</option>
</select>
<select id="test-select-empty-value">
<option value=""></option>
</select>
<button id="test-button-value" value="button value">button</button>
<button id="test-button-no-value"></button>
<button id="test-button-empty-value" value="">button</button>
<button id="test-button-text-value">button text</button>
</form>
<form id="test-clone-form"></form>
<iframe id="test-frame" src="test-frame.html"></iframe>
<div id="test-children">
foo
<span>bar</span>
<span>baz</span>
</div>
<div id="test-get-text">
foo<span>bar</span>baz
</div>
<div id="test-ancestor-stop">
<div>
<div id="test-element-by-axis">foo<div></div>bar<span></span>baz<em></em>
</div>
</div>
<div id="test-siblings">
<em>foo</em>
<span>foo</span>
<strong>baz</strong>
</div>
</div>
</body>
</html>