blob: e1c57a87a4acf0d0666df8f582ff584105f77050 (
plain)
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
|
<head>
<script>
function gc()
{
if (window.GCController)
return GCController.collect();
for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires about 9K allocations before a collect)
var s = new String("");
}
}
function runTest()
{
if (window.testRunner)
testRunner.dumpAsText();
var validity = document.getElementById("control").validity;
document.body.removeChild(document.getElementById("control"));
gc();
validity.valueMissing;
document.getElementById("result").firstChild.data = "Test has run: If no assertion or crash occurred, it passed.";
}
</script>
</head>
<body onload="runTest()">
<p>Tests the behavior of removing a control and then accessing its validity state afterward.</p>
<select id="control"></select>
<p id="result">TEST DID NOT RUN YET</p>
</body>
|