Html程序  |  34行  |  1.13 KB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
    <script>
        function test()
        {
            document.getElementById("z").style.display='block';
            open("data:text/html,SUCCESS");
        }
    </script>
</head>
<body>
    <p><b>BUG ID:</b> <a href="http://bugs.webkit.org/show_bug.cgi?id=14899">Bugzilla bug 14899</a> !d->m_view->needsLayout() in Frame::paint() (Causes assert)</p>
    
    <p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> 
    Make sure you are using a debug build of the Web Kit framework. Click the Test button below.
    </p>
    
    <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
    A new window will open.
    </p>
    
    <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
    An assertion failure will occur.
    </p>
    <button onclick="test()">Test</button>
    <div id="z" style="display: none;">
        <object>
            <embed width="40" src="resources/orange.mov" controller="false">
        </object>
    </div>
</body>