summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/harness/testrunner-object.html
blob: 4ca26bfd002a2b1a6d9e33b8038602b5550e991d (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
<!DOCTYPE html>
<html>
<body>
<pre><script>

if (window.layoutTestController)
    layoutTestController.dumpAsText();

if (window.testRunner)
    testRunner.dumpAsText();

document.writeln(window.testRunner ? "PASS - window.testRunner exists" : "FAIL - window.testRunner doesn't");
if (window.layoutTestController) {
    for (var property in window.testRunner) {
        if (!(property in window.layoutTestController))
            document.write("Property " + property + " exists on testRunner but doesn't exist on layoutTestController");
    }
    for (var property in window.layoutTestController) {
        if (!(property in window.testRunner))
            document.write("Property " + property + " exists on layoutTestController but doesn't exist on testRunner");
    }
}

document.writeln('Done');

</script></pre>
</body>
</html>