diff options
Diffstat (limited to 'Source/WebCore/manual-tests/plugins')
-rw-r--r-- | Source/WebCore/manual-tests/plugins/flip4mac-update-alert-over-navigation.html | 30 | ||||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/gtk-windowed-grey-glitch.html | 20 | ||||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/object-clipping.html | 22 | ||||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/plugin-paint-causes-layout.html | 39 | ||||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/test.swf | bin | 0 -> 10085 bytes | |||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.html | 25 | ||||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.swf | bin | 0 -> 5705 bytes | |||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/windowed.html | 109 | ||||
-rw-r--r-- | Source/WebCore/manual-tests/plugins/windowless.html | 108 |
9 files changed, 353 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/plugins/flip4mac-update-alert-over-navigation.html b/Source/WebCore/manual-tests/plugins/flip4mac-update-alert-over-navigation.html new file mode 100644 index 0000000..2391717 --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/flip4mac-update-alert-over-navigation.html @@ -0,0 +1,30 @@ +<html> +<head> + <title>Test case for <rdar://problem/7313430> Many crashes in Safari inside Flip4Mac below -[NSAlert didEndAlert:returnCode:contextInfo:]</title> +</head> +<body> + <h1>Test case for <<a href='rdar://problem/7313430'>rdar://problem/7313430</a>> Many crashes in Safari inside Flip4Mac below -[NSAlert didEndAlert:returnCode:contextInfo:]</h1> + + <p>This test requires Flip4Mac to be installed and an update to be available for the version that is installed. Previous versions + of Flip4Mac can be downloaded from <a href='http://dynamic.telestream.net/downloads/download-flip4macwmv.htm'>Telestream's website</a>. + As of the writing of this test on 2010-04-21 the latest available version of Flip4Mac is 2.3.2.6. The prior version to that, + version 2.3.1.2, is therefore currently the most recent version that will reproduce this bug due to it being the most recent version + with an update available. + </p> + + <p>Once Flip4Mac is installed, you can test the bug by doing the following.</p> + <ol> + <li>Launch the browser with <code>NSZombieEnabled=YES</code> and <code>NSDeallocateZombies=NO</code> set in the enrivonment.</li> + <li>Load this page. A Flip4Mac update alert will be displayed, and soon after the page will navigate.</li> + <li>After the new page has loaded click the "Cancel" button on the update alert.The browser should not crash.</li> + </ol> + + <p>If you have the correct version of Flip4Mac installed but do not see the update alert displayed when loading this page then you may need to delete + the Flip4Mac preferences to force it to check for updates. You can do this by removing <code>~/Library/Preferences/net.telestream.wmv.*</code> + and then relaunching the browser.</p> + + <object type="application/asx"></object> + + <script>window.setTimeout(function() { window.location = "data:text/html,If the browser does not crash when you click 'Cancel' in the Flip4Mac update alert sheet then the bug is not present."; }, 10000)</script> +</body> +</html> diff --git a/Source/WebCore/manual-tests/plugins/gtk-windowed-grey-glitch.html b/Source/WebCore/manual-tests/plugins/gtk-windowed-grey-glitch.html new file mode 100644 index 0000000..73975eb --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/gtk-windowed-grey-glitch.html @@ -0,0 +1,20 @@ +<html> +<script type="text/javascript"> + function openFullScreenFlash() { + window.open("test.swf","","width=200,height=200"); + } +</script> +<head> + <title>Test grey glitch with fullscreen Flash animation (but 47742)</title> +</head> +<body> + <p>This manual test is used to test <a href="https://bugs.webkit.org/show_bug.cgi?id=47742">bug 47742</a>.</p> + <ul> + <li>1. Click on the button to open popup with full screen flash animation.</li> + <li>2. Make sure the popup content is not grey.</li> + <li>3. Resize the popup. </li> + <li>4. Make sure the resize does not produce grey flash (especially when scaling down).</li> + </ul> + <input type="button" value="Open fullscreen Flash" onclick="openFullScreenFlash();"/> +</body> +</html> diff --git a/Source/WebCore/manual-tests/plugins/object-clipping.html b/Source/WebCore/manual-tests/plugins/object-clipping.html new file mode 100644 index 0000000..23fd630 --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/object-clipping.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> + +<html> +<head> + <title>clipping objects</title> + <style type="text/css" media="screen"> + object { + margin: 30px; + border: 20px solid green; + } + </style> +</head> +<body> + <p>You should see a clipped video surrounded by a thick green border.</p> + <p><a href="https://bugs.webkit.org/show_bug.cgi?id=35555">https://bugs.webkit.org/show_bug.cgi?id=35555</a></p> + <object type="video/quicktime" data="../../../LayoutTests/media/content/test.mp4" width="200" height="150"> + <param value="false" name="autoplay"> + <param value="false" name="controller"> + </object> + +</body> +</html> diff --git a/Source/WebCore/manual-tests/plugins/plugin-paint-causes-layout.html b/Source/WebCore/manual-tests/plugins/plugin-paint-causes-layout.html new file mode 100644 index 0000000..4781c7e --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/plugin-paint-causes-layout.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> + +<html> +<head> + <style type="text/css" media="screen"> + embed { + position: absolute; + margin: 10px; + } + + .container { + position: relative; + border: 2px solid blue; + padding: 20px; + width: 100px; + } + + </style> + <script type="text/javascript" charset="utf-8"> + function hideFirst() + { + var firstDiv = document.getElementById('first'); + if (!firstDiv) + return; + + firstDiv.parentNode.removeChild(firstDiv); + document.body.clientWidth; + } + </script> +</head> +<body> + <embed type="application/x-webkit-test-netscape" onpaintevent="hideFirst()" drawingmodel="coreanimation"></embed> + + <p>This test should not assert or crash when loaded in Safari, when Safari captures a snapshot.</p> + <div id="first" class="container"> + </div> + +</body> +</html> diff --git a/Source/WebCore/manual-tests/plugins/test.swf b/Source/WebCore/manual-tests/plugins/test.swf Binary files differnew file mode 100644 index 0000000..8952982 --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/test.swf diff --git a/Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.html b/Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.html new file mode 100644 index 0000000..53fc1b7 --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.html @@ -0,0 +1,25 @@ +<html>
+<head>
+ <title>Test case for <rdar://problem/7856151> REGRESSION: NPP_Destroy is not called when page navigates when plug-in is displaying modal dialog</title>
+
+ <meta http-equiv="refresh" content="3; data:text/html,If we did not crash or hang and there is no Adobe Flash dialog on screen then this test was a success.<p><a href='javascript:history.back();'>Run again</a>.</p><p><a href='rdar://problem/7856151'>&lt;rdar://problem/7856151&gt;</a>.</p>">
+</head>
+<body>
+ <h1>Test case for <<a href='rdar://problem/7856151'>rdar://problem/7856151</a>> REGRESSION: NPP_Destroy is not called when page navigates when plug-in is displaying modal dialog</h1>
+
+ <p>This page loads some Adobe Flash content that results in the Flash Player plug-in displaying a modal alert window. The page then triggers
+ a navigation while this alert is on-screen. After the navigation completes the Flash Player plug-in's modal alert should no longer be
+ visible on-screen and the plug-in host and browser application should not crash.
+ </p>
+
+ <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="400" align="middle">
+ <param name="allowScriptAccess" value="sameDomain">
+ <param name="allowFullScreen" value="false">
+ <param name="movie" value="timeout-dialog-displayed-over-navigation.swf">
+ <param name="quality" value="high">
+ <param name="bgcolor" value="#ffffff">
+ <embed src="timeout-dialog-displayed-over-navigation.swf" quality="high" bgcolor="#ffffff" width="550" height="400" align="middle"
+ allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer">
+ </object>
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.swf b/Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.swf Binary files differnew file mode 100644 index 0000000..7e7c3d9 --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/timeout-dialog-displayed-over-navigation.swf diff --git a/Source/WebCore/manual-tests/plugins/windowed.html b/Source/WebCore/manual-tests/plugins/windowed.html new file mode 100644 index 0000000..56a02f4 --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/windowed.html @@ -0,0 +1,109 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>Transparent Flash Test File</title> +<style> + #overlayDiv { + position: relative; + color: white; + background: black; + top: 50px; + left: -50px; + width: 200px; + opacity: 0.6; + float: left; + z-index: 1; + display: none; + } + embed { + float: left; + -webkit-transition: -webkit-transform 3s ease-in; + } +</style> +<script> + function testVisibility() { + var flashPlugin = document.getElementById('flashPlugin'); + if (flashPlugin.style.display == 'none') { + flashPlugin.style.display = 'block'; + } else { + flashPlugin.style.display = 'none'; + } + } + + function testResize() { + var flashPlugin = document.getElementById('flashPlugin'); + flashPlugin.width = flashPlugin.width == "200" ? "100" : "200"; + flashPlugin.height = flashPlugin.height == "200" ? "100" : "200"; + } + + function testMove() { + var flashPlugin = document.getElementById('flashPlugin'); + var t = parseInt(flashPlugin.style.top); + flashPlugin.style['padding-left'] = "100px"; + } + + function testAnimation() { + var flashPlugin = document.getElementById('flashPlugin'); + flashPlugin.style.webkitTransform='rotate(180deg)'; + } + + function toggleDivOverFlash() { + var overlayDiv = document.getElementById('overlayDiv'); + if (overlayDiv.style.display != 'block') { + overlayDiv.style.display = 'block'; + } else { + overlayDiv.style.display = ''; + } + } +</script> +</head> + +<body> + + <b> Verify the following tests with and without the page scrolled (including seeming unrelated test cases like printing). <br/> + For the Qt port, test with QGraphicsView enabled and disabled</b> <br/><br/> + + <!-- <embed id="flashPlugin" src="http://www.youtube.com/v/loXfcsXRB-w&hl=en&fs=1" --!> + <embed id="flashPlugin" src="test.swf" + width="200" height="200" + type="application/x-shockwave-flash"> + </embed> + + <div id="overlayDiv"> This is an overlay that will display over the flash. In addition, you should be able to see + the flash through the div contents. </div> + + <div style="clear:both"/> + + <input type="checkbox" name="visibilityCheckBox"> Verify if the flash toggles visibility + <input type="button" id="visibilityButton" value="Test Visibility" onClick="testVisibility()"/><br/> + + <input type="checkbox" name="resizeCheckBox"> Verify if the flash resizes when element is resized + <input type="button" id="resizeButton" value="Test Resize" onClick="testResize()"/><br/> + + <input type="checkbox" name="moveCheckBox"> Verify if the flash moves when element is moved + <input type="button" id="moveButton" value="Test Move" onClick="testMove()"/><br/> + + <input type="checkbox" name="animationCheckBox"> Verify css animations with flash + <input type="button" id="animationButton" value="Test Animation" onClick="testAnimation()"/><br/> + + <input type="checkbox" name="printCheckBox"> Verify if printing displays flash on the print preview and printer output <br/> + + <input type="checkbox" name="zoomCheckBox"> Verify if elements in flash are correctly painted and clickable after zooming <br/> + + <input type="checkbox" name="screenshotBox"> Verify if taking a screenshot from QtTestBrowser displays flash <br/> + + <input type="checkbox" name="paintSystemsCheckBox"> Verify if flash is displayed with graphicssystems - raster, opengl <br/> + + <input type="checkbox" name="focusCheckBox"> Verify if shifting focus back and forth from flash to html works + <input value="Shift focus here"/></br/> + + <input type="checkbox" name="testZIndex"> Test if html can display over flash + <input type="button" value="Toggle transparent div" onClick="toggleDivOverFlash()"<br/> + + <input type="checkbox" name="testZIndex"> Test opaque mode by setting wmode to opaque <br/> + + <br/> +</body> + +</html> diff --git a/Source/WebCore/manual-tests/plugins/windowless.html b/Source/WebCore/manual-tests/plugins/windowless.html new file mode 100644 index 0000000..27e8a82 --- /dev/null +++ b/Source/WebCore/manual-tests/plugins/windowless.html @@ -0,0 +1,108 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>Transparent Flash Test File</title> +<style> + #overlayDiv { + position: relative; + color: white; + background: black; + top: 50px; + left: -50px; + width: 200px; + opacity: 0.6; + float: left; + z-index: 1; + display: none; + } + embed { + float: left; + -webkit-transition: -webkit-transform 3s ease-in; + } +</style> +<script> + function testVisibility() { + var flashPlugin = document.getElementById('flashPlugin'); + if (flashPlugin.style.display == 'none') { + flashPlugin.style.display = 'block'; + } else { + flashPlugin.style.display = 'none'; + } + } + + function testResize() { + var flashPlugin = document.getElementById('flashPlugin'); + flashPlugin.width = flashPlugin.width == "200" ? "100" : "200"; + flashPlugin.height = flashPlugin.height == "200" ? "100" : "200"; + } + + function testMove() { + var flashPlugin = document.getElementById('flashPlugin'); + var t = parseInt(flashPlugin.style.top); + flashPlugin.style['padding-left'] = "100px"; + } + + function testAnimation() { + var flashPlugin = document.getElementById('flashPlugin'); + flashPlugin.style.webkitTransform='rotate(180deg)'; + } + + function toggleDivOverFlash() { + var overlayDiv = document.getElementById('overlayDiv'); + if (overlayDiv.style.display != 'block') { + overlayDiv.style.display = 'block'; + } else { + overlayDiv.style.display = ''; + } + } +</script> +</head> + +<body> + + <b> Verify the following tests with and without the page scrolled (including seeming unrelated test cases like printing). <br/> + For the Qt port, test with QGraphicsView enabled and disabled</b> <br/><br/> + + <!-- <embed id="flashPlugin" src="http://www.youtube.com/v/loXfcsXRB-w&hl=en&fs=1" --!> + <embed id="flashPlugin" src="test.swf" + width="200" height="200" + wmode="transparent" + type="application/x-shockwave-flash"> + </embed> + + <div id="overlayDiv"> This is an overlay that will display over the flash. In addition, you should be able to see + the flash through the div contents. </div> + + <div style="clear:both"/> + + <input type="checkbox" name="visibilityCheckBox"> Verify if the flash toggles visibility + <input type="button" id="visibilityButton" value="Test Visibility" onClick="testVisibility()"/><br/> + + <input type="checkbox" name="resizeCheckBox"> Verify if the flash resizes when element is resized + <input type="button" id="resizeButton" value="Test Resize" onClick="testResize()"/><br/> + + <input type="checkbox" name="moveCheckBox"> Verify if the flash moves when element is moved + <input type="button" id="moveButton" value="Test Move" onClick="testMove()"/><br/> + + <input type="checkbox" name="animationCheckBox"> Verify css animations with flash + <input type="button" id="animationButton" value="Test Animation" onClick="testAnimation()"/><br/> + + <input type="checkbox" name="printCheckBox"> Verify if printing displays flash on the print preview and printer output <br/> + + <input type="checkbox" name="zoomCheckBox"> Verify if elements in flash are correctly painted and clickable after zooming <br/> + + <input type="checkbox" name="screenshotBox"> Verify if taking a screenshot from QtTestBrowser displays flash <br/> + + <input type="checkbox" name="paintSystemsCheckBox"> Verify if flash is displayed with graphicssystems - raster, opengl <br/> + + <input type="checkbox" name="focusCheckBox"> Verify if shifting focus back and forth from flash to html works + <input value="Shift focus here"/></br/> + + <input type="checkbox" name="testZIndex"> Test if html can display over flash + <input type="button" value="Toggle transparent div" onClick="toggleDivOverFlash()"<br/> + + <br/> +</body> + +</html> |