summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/qt
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-06 11:45:16 +0100
committerSteve Block <steveblock@google.com>2011-05-12 13:44:10 +0100
commitcad810f21b803229eb11403f9209855525a25d57 (patch)
tree29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /Source/WebCore/manual-tests/qt
parent121b0cf4517156d0ac5111caf9830c51b69bae8f (diff)
downloadexternal_webkit-cad810f21b803229eb11403f9209855525a25d57.zip
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'Source/WebCore/manual-tests/qt')
-rw-r--r--Source/WebCore/manual-tests/qt/main.html10
-rw-r--r--Source/WebCore/manual-tests/qt/numpad-enter-key.html22
-rw-r--r--Source/WebCore/manual-tests/qt/plugin-iframe.html26
-rw-r--r--Source/WebCore/manual-tests/qt/plugin-sibling-frame-include.html17
-rw-r--r--Source/WebCore/manual-tests/qt/plugin-sibling-frame.html6
-rw-r--r--Source/WebCore/manual-tests/qt/qtplugin-scrolling.html32
-rw-r--r--Source/WebCore/manual-tests/qt/qtplugin.html27
-rw-r--r--Source/WebCore/manual-tests/qt/unload-alert.html8
8 files changed, 148 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/qt/main.html b/Source/WebCore/manual-tests/qt/main.html
new file mode 100644
index 0000000..48c103a
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/main.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<div>
+Plugin test within an iframe:
+</div>
+<div style="float:right;">
+<IFRAME SRC="qtplugin.html" FRAMEBORDER="0" width="100%" height="100%" ></IFRAME>
+ </div>
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/qt/numpad-enter-key.html b/Source/WebCore/manual-tests/qt/numpad-enter-key.html
new file mode 100644
index 0000000..ea9b800
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/numpad-enter-key.html
@@ -0,0 +1,22 @@
+<html>
+<head>
+ <script type="text/javascript">
+ window.onload = function() {
+ document.getElementById('test').addEventListener('keypress', function(e) {
+ out = document.getElementById('out');
+ out.innerHTML = 'keyCode: ' + e.keyCode + ' (should be 13)';
+ if (e.keyCode == 13)
+ out.style.background = '#6f6';
+ else
+ out.style.background = '#f66';
+ }, false);
+ document.getElementById('test').focus()
+ };
+ </script>
+</head>
+<body>
+ <p>Press the numpad Enter key while the input box below is focused:</p>
+ <p><input type="text" id="test" /></p>
+ <p id="out"></p>
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/qt/plugin-iframe.html b/Source/WebCore/manual-tests/qt/plugin-iframe.html
new file mode 100644
index 0000000..ee838ba
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/plugin-iframe.html
@@ -0,0 +1,26 @@
+<html>
+ <head>
+ <style>
+ html, body {
+ background-color: blue;
+ color: white;
+ }
+ #spacer {
+ width: 100%;
+ height: 1000px;
+ background-color: yellow;
+ }
+ </style>
+ </script>
+ </head>
+ <body>
+ <p>
+ Scroll the view, ensure that plugin scrolls in sync with the view.
+ </p>
+
+ <iframe src="plugin-sibling-frame-include.html" width="200" height="200"
+ frameborder="0" scrolling="auto" name="myInlineFrame"></iframe>
+ <div id="spacer"><p>content</p></div>
+ </body>
+</html>
+
diff --git a/Source/WebCore/manual-tests/qt/plugin-sibling-frame-include.html b/Source/WebCore/manual-tests/qt/plugin-sibling-frame-include.html
new file mode 100644
index 0000000..e59867c
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/plugin-sibling-frame-include.html
@@ -0,0 +1,17 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>ClickToFlash Test File</title>
+</head>
+
+<body bgcolor="#000">
+
+ <!-- <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>
+
+</body>
+
+</html>
diff --git a/Source/WebCore/manual-tests/qt/plugin-sibling-frame.html b/Source/WebCore/manual-tests/qt/plugin-sibling-frame.html
new file mode 100644
index 0000000..74e339a
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/plugin-sibling-frame.html
@@ -0,0 +1,6 @@
+<html>
+<head><title>Move the frame to hide the plugin fully</title></head>
+<frameset cols="25%,50%,25%">
+ <frame src="plugin-sibling-frame-include.html">
+</frameset>
+</html>
diff --git a/Source/WebCore/manual-tests/qt/qtplugin-scrolling.html b/Source/WebCore/manual-tests/qt/qtplugin-scrolling.html
new file mode 100644
index 0000000..8503832
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/qtplugin-scrolling.html
@@ -0,0 +1,32 @@
+<html>
+<head>
+<style>
+ #spacer {
+ width: 100%;
+ height: 1000px;
+ background-color: yellow;
+ }
+</style>
+</head>
+<body>
+
+<p>
+ Scroll the page, ensure that the two labels move nicely along with the rest of the document.
+</p>
+
+<div>
+<object type="application/x-qt-plugin" classid="alien_QLabel" name="label1" height="30"></object>
+</div>
+
+<div>
+<object type="application/x-qt-plugin" classid="QLabel" name="label2" height="30"></object>
+</div>
+
+<div id="spacer"><p>&nbsp;</p></div>
+
+<script>
+document.label1.setText("Label one");
+document.label2.setText("Label two");
+</script>
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/qt/qtplugin.html b/Source/WebCore/manual-tests/qt/qtplugin.html
new file mode 100644
index 0000000..631ce63
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/qtplugin.html
@@ -0,0 +1,27 @@
+<html>
+<body>
+Image:<br/>
+ <img src="qrc:/webkit/inspector/Images/largerResourcesButtonGlyph.png" width="80" height="80"/>
+ <br/>
+
+<!-- visible progressbar -->
+<div>
+QT progress bar:
+<object type="application/x-qt-plugin" classid="QProgressBar" name="progressbar1" height=30></object>
+</div>
+
+<!-- should not be visible -->
+<div style="visibility: hidden;">
+You should not see this:
+<object type="application/x-qt-plugin" classid="QProgressBar" name="progressbar2" height=30></object>
+</div>
+
+<script>
+function display(){
+ if (++document.progressbar1.value != 100)
+setTimeout("display()", 50)
+}
+display();
+</script>
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/qt/unload-alert.html b/Source/WebCore/manual-tests/qt/unload-alert.html
new file mode 100644
index 0000000..3b02818
--- /dev/null
+++ b/Source/WebCore/manual-tests/qt/unload-alert.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+</head>
+<body onunload="alert('goodbye');">
+Reload me twice ensuring that this didn't result in a crash. Test added due to
+bug <a href="https://bugs.webkit.org/show_bug.cgi?id=26556">@25556</a>
+</body>
+</html>