blob: 92b6e26be92f2c805563bc6768ae53a45af86acb (
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
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
embed {
height: 1px;
width: 1px;
border: 1px solid black;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function doTest()
{
window.setTimeout(function() {
if (window.testRunner) {
document.getElementById('result').textContent = window.internals.layerTreeAsText(document);
testRunner.notifyDone();
}
}, 0);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<embed type="application/x-webkit-test-netscape" width="1" height="1" drawingmodel="coreanimation">
<embed type="application/x-webkit-test-netscape" width="100" height="0" drawingmodel="coreanimation">
<div id="result">Test only works in DRT</div>
</body>
</html>
|