summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests')
-rw-r--r--WebCore/manual-tests/crash-on-accessing-domwindow-without-frame.html22
-rw-r--r--WebCore/manual-tests/inspector/duplicate-resource-urls.html61
-rw-r--r--WebCore/manual-tests/keyboard-menukey-event.html31
-rw-r--r--WebCore/manual-tests/plugins/test.swfbin0 -> 10085 bytes
-rw-r--r--WebCore/manual-tests/plugins/windowed.html97
-rw-r--r--WebCore/manual-tests/plugins/windowless.html96
-rw-r--r--WebCore/manual-tests/qt/plugin-sibling-frame-include.html3
7 files changed, 309 insertions, 1 deletions
diff --git a/WebCore/manual-tests/crash-on-accessing-domwindow-without-frame.html b/WebCore/manual-tests/crash-on-accessing-domwindow-without-frame.html
new file mode 100644
index 0000000..77dd115
--- /dev/null
+++ b/WebCore/manual-tests/crash-on-accessing-domwindow-without-frame.html
@@ -0,0 +1,22 @@
+<script>
+var w;
+function clear() {
+ // Id doesn't matter, the crash happens while trying to access the NULL Document to lookup the Id.
+ w.clearTimeout(153);
+}
+
+function test() {
+ w = window.open("data:text/html,"+
+ "<script>" +
+ "function navigate() { location.href='data:text/html,<body>Close this page and wait.</body>'};" +
+ "setTimeout(navigate,0);</" +
+ "script>");
+
+ setInterval(clear, 20);
+}
+</script>
+<body><p>This test reproduces the crash that happens when JavaScript has access to DOMWindow which is disconnected from its Frame. This crash was fixed by http://trac.webkit.org/changeset/49786</p>
+To reproduce the crash:
+<ul><li>Click the link below, the popup window opens.</li><li>Close the popup window.</li><li>Wait about 10 seconds (~10, page cache should start deleting pages) and observe the crash.</li></ul>
+Crashes on Safari 4.0.3</p><p><a href="javascript:test()">Crash me!</a></p>
+</body>
diff --git a/WebCore/manual-tests/inspector/duplicate-resource-urls.html b/WebCore/manual-tests/inspector/duplicate-resource-urls.html
new file mode 100644
index 0000000..7a9be7e
--- /dev/null
+++ b/WebCore/manual-tests/inspector/duplicate-resource-urls.html
@@ -0,0 +1,61 @@
+<html>
+<head>
+<title>Tests for Bug 30079</title>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
+</head>
+
+<body>
+<p>Tests for
+<ul>
+<li><p><a href="https://bugs.webkit.org/show_bug.cgi?id=30079">Bug 30079: unselectable resources in resource panel</a>
+</ul>
+
+<p>To test, open the Inspector on this page, go to the Resources panel.
+
+<p>First off, you should be able to actually select each "abc" resource to see
+the HTTP info / content. Bug 30079 didn't allow you to select all of these.
+
+<p>For each of the "abc" resources open the <b>HTTP Information</b> and
+<b>Request Payload</b> tree elements above the content. One of the resources
+will not have a <b>Request Payload</b>.
+
+<p>There should be one each of the following resources:
+
+<ul>
+<li><p>One with a Request Method: GET and no Request Payload
+<li><p>One with a Request Method: POST and Request Payload of "123"
+<li><p>One with a Request Method: POST and Request Payload of "456"
+</ul>
+
+<p>Another change made by this bug was to change the way the drag/drop of
+the resource itself worked. The previous method of handling drag/drop of
+the resource was actually causing the unselectability. So the drag/drop
+of the resources needs to be tested as well.
+
+<ul>
+<li><p>Select one of the resources.
+<li><p>Drag it to an application that can accept text or a link
+<li><p>The application should provide some feedback indicating it will accept
+the drop, but may not
+<li>Drop, and the URL for the resource should be rendered appropriately.
+
+<script>
+
+var xhr;
+
+xhr = new XMLHttpRequest();
+xhr.open("POST", "http://example.org/abc");
+xhr.send("123");
+
+xhr = new XMLHttpRequest();
+xhr.open("POST", "http://example.org/abc");
+xhr.send("456");
+
+xhr = new XMLHttpRequest();
+xhr.open("GET", "http://example.org/abc");
+xhr.send();
+
+</script>
+
+</body>
+</html>
diff --git a/WebCore/manual-tests/keyboard-menukey-event.html b/WebCore/manual-tests/keyboard-menukey-event.html
new file mode 100644
index 0000000..bd2c8e7
--- /dev/null
+++ b/WebCore/manual-tests/keyboard-menukey-event.html
@@ -0,0 +1,31 @@
+<html lang="en">
+ <head>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8">
+ <title>Menu key testing</title>
+ <script language="javascript" type="text/javascript">
+ function log(str) {
+ var li = document.createElement("li");
+ li.appendChild(document.createTextNode(str));
+ var results = document.getElementById("results");
+ results.appendChild(li);
+ }
+ </script>
+ </head>
+ <body>
+ <p>
+ See bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=30619">30619</a>.
+ Note: this test is only applicable for Linux and Windows.
+ </p>
+ <ol>
+ <li>Click the text input box below and press Menu key.
+ The test passes if you see 'PASS' below.
+ <input type="text" oncontextmenu="log('PASS');" />
+ </li>
+ <li oncontextmenu="log('PASS');">Click or select somewhere
+ in this text and press Menu key.
+ The test passes if you see additional 'PASS' below.
+ </li>
+ </ol>
+ <ul id="results"></ul>
+ </body>
+</html>
diff --git a/WebCore/manual-tests/plugins/test.swf b/WebCore/manual-tests/plugins/test.swf
new file mode 100644
index 0000000..8952982
--- /dev/null
+++ b/WebCore/manual-tests/plugins/test.swf
Binary files differ
diff --git a/WebCore/manual-tests/plugins/windowed.html b/WebCore/manual-tests/plugins/windowed.html
new file mode 100644
index 0000000..4020408
--- /dev/null
+++ b/WebCore/manual-tests/plugins/windowed.html
@@ -0,0 +1,97 @@
+<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 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 both QtLauncher and QGVLauncher </b> <br/><br/>
+
+ <!-- <embed id="flashPlugin" src="http://www.youtube.com/v/loXfcsXRB-w&#038;hl=en&#038;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="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 QtLauncher display 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/WebCore/manual-tests/plugins/windowless.html b/WebCore/manual-tests/plugins/windowless.html
new file mode 100644
index 0000000..b553526
--- /dev/null
+++ b/WebCore/manual-tests/plugins/windowless.html
@@ -0,0 +1,96 @@
+<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 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 both QtLauncher and QGVLauncher </b> <br/><br/>
+
+ <!-- <embed id="flashPlugin" src="http://www.youtube.com/v/loXfcsXRB-w&#038;hl=en&#038;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="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 QtLauncher display 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>
diff --git a/WebCore/manual-tests/qt/plugin-sibling-frame-include.html b/WebCore/manual-tests/qt/plugin-sibling-frame-include.html
index ca509e9..e59867c 100644
--- a/WebCore/manual-tests/qt/plugin-sibling-frame-include.html
+++ b/WebCore/manual-tests/qt/plugin-sibling-frame-include.html
@@ -7,7 +7,8 @@
<body bgcolor="#000">
- <embed src="http://www.youtube.com/v/loXfcsXRB-w&#038;hl=en&#038;fs=1"
+ <!-- <embed id="flashPlugin" src="http://www.youtube.com/v/loXfcsXRB-w&#038;hl=en&#038;fs=1" --!>
+ <embed src="../plugins/test.swf"
type="application/x-shockwave-flash">
</embed>