summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/embed-inside-object.html
blob: dfc0da3dc6463b3e94c686ec8f568139f74313c8 (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
<html>
<script>
    function debug(str) {
        document.getElementById('console').innerHTML += str + "<br>";
    }
    
    function pluginCallback() {
        debug('SUCCESS');
        if (window.testRunner)
            testRunner.notifyDone();
    }
    
    function runTest() {
        if (window.testRunner) {
            testRunner.dumpAsText();
            testRunner.waitUntilDone();
        }
        
        var plugin = document.plugin;
    
        debug('plugin object is: ' + plugin);
        plugin.getURL('javascript:pluginCallback()', '_self')
    }
</script>
<body onload="runTest()">
<object name="plugin" type="application/x-webkit-test-netscape">
    <span>
        <embed name="plugin" type="application/x-webkit-test-netscape"></embed>
    </span>
</object>
<div>
    This tests that it's possible to control an embed that is nested inside an object with a span tag in between.
</div>
<div id="console">
</div>
</body>
</html>