blob: 13fa8697ca9314b61001111c9016555d28503a09 (
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
52
53
54
55
56
57
58
59
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Page 2</title>
<style>
@import url(browser_cmd_csscoverage_sheetD.css);
/* This should match below */
.page2-test1 {
color: #021;
}
/* This should not match below */
.page2-test2 {
color: #022;
}
/* This doesn't match until the event fires */
.page2-test3 {
color: #023;
}
</style>
<link rel="stylesheet" type="text/css" href="browser_cmd_csscoverage_sheetA.css">
<link rel="stylesheet" type="text/css" href="browser_cmd_csscoverage_sheetB.css">
<script type="application/javascript;version=1.8">
/* How quickly do we rush through this? */
let delay = 500;
window.addEventListener("load", () => {
dump('TEST-INFO | load from browser_cmd_csscoverage_page2.html\n');
setTimeout(() => {
dump('TEST-INFO | timeout from browser_cmd_csscoverage_page2.html\n');
/* This adds <div class=page2-test3></div> */
let parent = document.querySelector("#page2-test3-holder");
let child = document.createElement("div");
child.classList.add("page2-test3");
parent.appendChild(child);
}, delay);
});
</script>
</head>
<body>
<h2>Page 2</h2>
<div class=page2-test1>.page2-test1</div>
<div id=page2-test3-holder></div>
<div class=sheetA-test1>.sheetA-test1</div>
<div class=sheetA-test4>.sheetA-test4</div>
<div class=sheetB-test1>.sheetB-test1</div>
<div class=sheetB-test4>.sheetB-test4</div>
<div class=sheetC-test1>.sheetC-test1</div>
<div class=sheetC-test4>.sheetC-test4</div>
<div class=sheetD-test1>.sheetD-test1</div>
<div class=sheetD-test4>.sheetD-test4</div>
</body>
</html>
|