summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/instance-available-before-stylesheets-loaded-object.html
blob: 5f827f9911b1e8d2d8e7a50a3a7465ce63c29fa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<link rel="stylesheet" href="data:text/css,">
<object id="plugin" type="application/x-webkit-test-netscape" width=100 height=100></object>
<p id="result">
</p>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    var plugIn = document.getElementById("plugin");

    document.getElementById("result").innerText = ("eventLoggingEnabled" in plugIn)
        ? "PASS: Plugin instance available while waiting for style sheets to load"
        : "FAIL: Plugin not instantiated on property access while waiting for style sheets to load";

</script>