blob: b8bf1cb878e345562491fd06d77703dfcc39f262 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/**
* Gets URI that identifies the test.
* @return uri identifier of test
*/
function getTargetURI() {
return "http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLLinkElement11";
}
var docsLoaded = 0;
var mainLoaded = false;
var cssLoaded = false;
function finishTest() {
if (mainLoaded && cssLoaded) {
setResult(null, null);
} else {
if (!cssLoaded) {
setResult("fail", "No css onload fired");
} else {
setResult("fail", "Css fired, but maybe the document onload didn't");
}
}
if (window.layoutTestController) {
layoutTestController.notifyDone();
}
}
function loadComplete() {
mainLoaded = true;
if (++docsLoaded == 2) {
finishTest();
}
}
function cssComplete() {
cssLoaded = true;
if (++docsLoaded == 2) {
finishTest();
}
}
function startTest11() {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
}
|