summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/can-create-without-renderer.html
blob: 0230acb05ebc7f3be409d889b735b3963f188f3c (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
<html>
<head>
<style>
  body {
    height: 2000px;
  }
  #plugin {
    position: absolute;
    top: 500px;
    width: 150px;
    height: 150px;
  }
</style>
</head>

<body>
<div id="pluginContainer"></div>
<div>To pass, the line above should say: TestPlugin: canCreateWithoutRenderer</div>
<script>

    if (!window.testRunner) {
        document.write("This test does not work in manual mode.");
    } else {
        testRunner.dumpAsText();

        var plugin = document.createElement("object");
        plugin.setAttribute("width", 300);
        plugin.setAttribute("height", 200);
        plugin.setAttribute("type",
            "application/x-webkit-test-webplugin-can-create-without-renderer");
    }

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