blob: 7e82e0e72963c6d99a76b21aa7c826cd55589f4b (
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
|
<html>
<head>
<script>
var childFrame;
function generate() {
if (!window.layoutTestController) {
alert("window.layoutTestController not defined.");
return;
}
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
var page = window.location.search.substring(1);
if (!page) {
alert("please specify which page to generate via " +
"?<page> ... ie. generator.html?tabs");
}
childFrame = document.createElement('iframe');
childFrame.src = "../" + page + ".html?regenerate";
childFrame.style.display = "none";
document.body.appendChild(childFrame);
}
function done() {
var textNode = document.createTextNode(
childFrame.contentWindow.serializePage());
document.getElementsByTagName("body")[0].appendChild(textNode);
layoutTestController.notifyDone();
}
</script>
</head>
<body onload="generate();">
</body>
</html>
|