haikuwebkit/ManualTests/show-hide-object.html

65 lines
2.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
</head>
<body>
<p><b>BUG ID:</b> <a href="rdar://problem/3572507">3572507</a> Flash in div with display:none style will not redraw when style changed to display:block (3479)</p>
<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> <br>
1. Verify that there is a Flash animation playing below.<br>
2. Click "Hide Flash".<br>
3. Click "Show Flash".<br>
</p>
<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
The Flash movie hides when "Hide Flash" is clicked, and shows again when "Show Flash" is clicked.
</p>
<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
The Flash movie hides when "Hide Flash" is clicked, but does not show again when "Show Flash" is clicked. Clicking on "Hide Flash" and then "Show Flash" again will show the movie.
</p>
<script language="JavaScript">
// 2 html tabs for multiple flash/java
var selected = "tab1";
function tabClick(whichTab) {
selected = whichTab;
if (whichTab == "tab1") {
document.getElementById('tab1').style.display = "block";
document.getElementById('tab2').style.display = "none";
}
else if (whichTab == "tab2") {
document.getElementById('tab2').style.display = "block";
document.getElementById('tab1').style.display = "none";
}
}
</script>
<div>
<input type=button value="Hide Flash" onClick="tabClick('tab2')"><input type=button value="Show Flash" onClick="tabClick('tab1')">
<div id="tab2" style="display: none">
Flash hidden.
</div>
<div id="tab1">
<object id="scopeFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
<param name="movie" value="resources/spinbox.swf">
<param name="quality" value="high">
<comment>
<embed src="resources/spinbox.swf" width="300" height="200" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</comment>
</object>
</div>
</div>
</body>
</html>