summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests')
-rw-r--r--WebCore/manual-tests/NPN_Invoke/main.c26
-rw-r--r--WebCore/manual-tests/chromium/suggestions-popup-font-change.html21
-rw-r--r--WebCore/manual-tests/compositing/accel-comp-iframe-tab-repaint.html15
-rw-r--r--WebCore/manual-tests/compositing/resources/flash-frame.html3
-rw-r--r--WebCore/manual-tests/compositing/resources/tab-repaint-part-2.html18
-rw-r--r--WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html23
-rw-r--r--WebCore/manual-tests/focus-change-between-key-events.html24
-rw-r--r--WebCore/manual-tests/onfocus-alert-blinking-caret.html8
-rw-r--r--WebCore/manual-tests/qt/qt-10loop-anim.gifbin0 -> 1253 bytes
-rw-r--r--WebCore/manual-tests/qt/qt-gif-test.html8
-rw-r--r--WebCore/manual-tests/svg-tooltip.svg62
-rw-r--r--WebCore/manual-tests/visited-link-new-window.html18
12 files changed, 211 insertions, 15 deletions
diff --git a/WebCore/manual-tests/NPN_Invoke/main.c b/WebCore/manual-tests/NPN_Invoke/main.c
index f149f54..4a6d706 100644
--- a/WebCore/manual-tests/NPN_Invoke/main.c
+++ b/WebCore/manual-tests/NPN_Invoke/main.c
@@ -37,16 +37,16 @@
NPNetscapeFuncs *browser;
-NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved);
+NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved);
NPError NPP_Destroy(NPP instance, NPSavedData** save);
NPError NPP_SetWindow(NPP instance, NPWindow* window);
-NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype);
+NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype);
NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
-int32 NPP_WriteReady(NPP instance, NPStream* stream);
-int32 NPP_Write(NPP instance, NPStream* stream, int32 offset, int32 len, void* buffer);
+int32_t NPP_WriteReady(NPP instance, NPStream* stream);
+int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer);
void NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname);
void NPP_Print(NPP instance, NPPrint* platformPrint);
-int16 NPP_HandleEvent(NPP instance, void* event);
+int16_t NPP_HandleEvent(NPP instance, void* event);
void NPP_URLNotify(NPP instance, const char* URL, NPReason reason, void* notifyData);
NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value);
NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value);
@@ -153,7 +153,7 @@ int main(NPNetscapeFuncs *browserFuncs, NPPluginFuncs *pluginFuncs, NPP_Shutdown
return NPERR_NO_ERROR;
}
-NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved)
+NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved)
{
// Call window.alert("Success!")
NPError error;
@@ -180,7 +180,7 @@ NPError NPP_SetWindow(NPP instance, NPWindow* window)
return NPERR_NO_ERROR;
}
-NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16* stype)
+NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype)
{
*stype = NP_ASFILEONLY;
return NPERR_NO_ERROR;
@@ -191,12 +191,12 @@ NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason)
return NPERR_NO_ERROR;
}
-int32 NPP_WriteReady(NPP instance, NPStream* stream)
+int32_t NPP_WriteReady(NPP instance, NPStream* stream)
{
return 0;
}
-int32 NPP_Write(NPP instance, NPStream* stream, int32 offset, int32 len, void* buffer)
+int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer)
{
return 0;
}
@@ -210,7 +210,7 @@ void NPP_Print(NPP instance, NPPrint* platformPrint)
}
-int16 NPP_HandleEvent(NPP instance, void* event)
+int16_t NPP_HandleEvent(NPP instance, void* event)
{
return 1;
}
@@ -234,11 +234,11 @@ NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value)
FunctionPointer functionPointerForTVector(TransitionVector tvp)
{
- const uint32 temp[6] = {0x3D800000, 0x618C0000, 0x800C0000, 0x804C0004, 0x7C0903A6, 0x4E800420};
- uint32 *newGlue = NULL;
+ const uint32_t temp[6] = {0x3D800000, 0x618C0000, 0x800C0000, 0x804C0004, 0x7C0903A6, 0x4E800420};
+ uint32_t *newGlue = NULL;
if (tvp != NULL) {
- newGlue = (uint32 *)malloc(sizeof(temp));
+ newGlue = (uint32_t *)malloc(sizeof(temp));
if (newGlue != NULL) {
unsigned i;
for (i = 0; i < 6; i++) newGlue[i] = temp[i];
diff --git a/WebCore/manual-tests/chromium/suggestions-popup-font-change.html b/WebCore/manual-tests/chromium/suggestions-popup-font-change.html
new file mode 100644
index 0000000..b85977a
--- /dev/null
+++ b/WebCore/manual-tests/chromium/suggestions-popup-font-change.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+</head>
+<body>
+ <p>Verify that the font size in the suggestion popup matches the corresponding
+ input field, test passes if step 2 matches expected behavior.</p>
+ <ul>
+ <li>1. Type "abcd" in the text form and press enter.</li>
+ <li>2. Type "a" in the text form, suggestions popup should appear.
+ Verify that font size of text in suggestion popup is the same as in
+ the corresponding input form.
+ </li>
+ <li>3. Delete contents of input box, press Cntrl/+ [Command/+ on Mac]
+ to magnify the page contents. Repeat step 2, text size should still
+ match. </li>
+ </ul>
+ <form method="get" action="suggestions-popup-font-change.html" id="form">
+ <input name="s" id="s" style="font-size:x-large">
+ </form>
+</body>
+</html>
diff --git a/WebCore/manual-tests/compositing/accel-comp-iframe-tab-repaint.html b/WebCore/manual-tests/compositing/accel-comp-iframe-tab-repaint.html
new file mode 100644
index 0000000..35c9c34
--- /dev/null
+++ b/WebCore/manual-tests/compositing/accel-comp-iframe-tab-repaint.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<title>Accelerated compositing tab repaint bug</title>
+<style>
+body {
+ background-color: yellow;
+}
+</style>
+<h1>Accelerated compositing tab repaint bug</h1>
+<p>This test case checks for a repaint bug resulting from accelerated
+compositing of iframes on Mac. Follow these steps:</p>
+<ol>
+<li>Open <a href="resources/tab-repaint-part-2.html">this link</a> in a new tab.</li>
+<li>Close this tab.</li>
+<li>The new page should be blue.</li>
+</ol>
diff --git a/WebCore/manual-tests/compositing/resources/flash-frame.html b/WebCore/manual-tests/compositing/resources/flash-frame.html
new file mode 100644
index 0000000..34d9290
--- /dev/null
+++ b/WebCore/manual-tests/compositing/resources/flash-frame.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<title>Flash frame for repaint test</title>
+<embed src="../../resources/spinbox.swf">
diff --git a/WebCore/manual-tests/compositing/resources/tab-repaint-part-2.html b/WebCore/manual-tests/compositing/resources/tab-repaint-part-2.html
new file mode 100644
index 0000000..17cb6e7
--- /dev/null
+++ b/WebCore/manual-tests/compositing/resources/tab-repaint-part-2.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>Accelerated compositing tab repaint bug part 2</title>
+<style>
+body {
+ background-color: royalblue;
+}
+iframe {
+ border-width: 0px;
+ width: 400px;
+ height: 200px;
+}
+</style>
+<body>
+<ol>
+<li>This page should have a blue background.</li>
+</ol>
+<iframe src="../resources/flash-frame.html"></iframe>
+</body>
diff --git a/WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html b/WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html
new file mode 100644
index 0000000..f62fd68
--- /dev/null
+++ b/WebCore/manual-tests/dom/document-write-synchronous-after-page-load.html
@@ -0,0 +1,23 @@
+<p>This test ensures that document.write after page load is synchronous.</p>
+<p>You will get a PASS or FAIL alert message after a few seconds.</p>
+<script>
+window.onload = function() {
+
+ // Build a very long string to write.
+ var LIMIT = 17;
+ var str = '<p style="display:none">x</p>';
+ for (var i=0; i<LIMIT; ++i)
+ str += str;
+
+ // Write the string and check the DOM immediately and after a small delay.
+ var doc = document.implementation.createHTMLDocument();
+ doc.write(str);
+ var immediateElementCount = doc.getElementsByTagName('*').length;
+ setTimeout(function() {
+ var delayedElementCount = doc.getElementsByTagName('*').length;
+ var passOrFail = (immediateElementCount === delayedElementCount ? "PASS" : "FAIL");
+ alert(passOrFail);
+ }, 100);
+
+}
+</script>
diff --git a/WebCore/manual-tests/focus-change-between-key-events.html b/WebCore/manual-tests/focus-change-between-key-events.html
new file mode 100644
index 0000000..8ceb575
--- /dev/null
+++ b/WebCore/manual-tests/focus-change-between-key-events.html
@@ -0,0 +1,24 @@
+<body onload="document.getElementById('dummy').focus();">
+<iframe src="data:text/html,<body onload='document.getElementsByTagName(&quot;input&quot;)[0].focus()'><input></body>" id=victim name=victim>
+</iframe>
+<script>
+
+var cur_pos = 0;
+
+function maybe_redirect(e) {
+ var evt = window.event ? event : e;
+ var cc = evt.charCode ? evt.charCode : evt.keyCode;
+
+ document.getElementById('victim').focus();
+ frames['victim'].focus();
+
+ document.getElementById('dummy').value += String.fromCharCode(cc).toLowerCase();
+
+ setTimeout('focus();document.getElementById("dummy").focus()',1);
+}
+
+
+</script>
+<p>Type some text. It should only appear in the below input field.</p>
+<input type=text onkeydown="maybe_redirect(event)" id=dummy>
+</body>
diff --git a/WebCore/manual-tests/onfocus-alert-blinking-caret.html b/WebCore/manual-tests/onfocus-alert-blinking-caret.html
new file mode 100644
index 0000000..26b9812
--- /dev/null
+++ b/WebCore/manual-tests/onfocus-alert-blinking-caret.html
@@ -0,0 +1,8 @@
+<!DOCTYPE HTML>
+
+<body>
+Focus the field below, then dismiss the alert. The field should retain the focus,
+and the caret in the field should blink.
+<br>
+<input onfocus="alert('Test');">
+</body>
diff --git a/WebCore/manual-tests/qt/qt-10loop-anim.gif b/WebCore/manual-tests/qt/qt-10loop-anim.gif
new file mode 100644
index 0000000..ddb0006
--- /dev/null
+++ b/WebCore/manual-tests/qt/qt-10loop-anim.gif
Binary files differ
diff --git a/WebCore/manual-tests/qt/qt-gif-test.html b/WebCore/manual-tests/qt/qt-gif-test.html
index 06505f4..3412e1b 100644
--- a/WebCore/manual-tests/qt/qt-gif-test.html
+++ b/WebCore/manual-tests/qt/qt-gif-test.html
@@ -2,11 +2,15 @@
<body>
<div>
<img src="qt-anim.gif">
- <p>This should animate</p>
+ <p>This should animate.</p>
</div>
<div>
<img src="qt-noanim.gif">
- <p>This should not animate and you should see a cross</p>
+ <p>This should not animate and you should see a cross.</p>
+</div
+<div>
+ <img src="qt-10loop-anim.gif">
+ <p>This animation should loop 10 times.</p>
</div
</body>
</html>
diff --git a/WebCore/manual-tests/svg-tooltip.svg b/WebCore/manual-tests/svg-tooltip.svg
new file mode 100644
index 0000000..84fe1d7
--- /dev/null
+++ b/WebCore/manual-tests/svg-tooltip.svg
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>This string should not show up as a tooltip</title>
+ <desc>
+ This test verifies that tooltips are properly rendered for SVG content in a variety of
+ scenarios. Hovering over every shape should result in a tooltip of "PASS".
+ </desc>
+ <defs>
+ <ellipse id="e1" cx="100" cy="200" rx="50" ry="30" fill="blue">
+ <title>PASS</title>
+ </ellipse>
+ <ellipse id="e2" cx="250" cy="200" rx="50" ry="30" fill="blue">
+ <title>FAIL</title>
+ </ellipse>
+ <symbol id="e3">
+ <ellipse cx="100" cy="300" rx="50" ry="30" fill="blue">
+ <title>PASS</title>
+ </ellipse>
+ </symbol>
+ <symbol id="e4">
+ <title>FAIL</title>
+ <ellipse cx="250" cy="300" rx="50" ry="30" fill="blue">
+ </ellipse>
+ </symbol>
+ </defs>
+
+ <text y="15" x="0">When hovered, all shapes should show a "PASS" tooltip. Anything else is a failure.</text>
+
+ <ellipse cx="100" cy="100" rx="50" ry="30" fill="blue">
+ <title>PASS</title>
+ </ellipse>
+
+ <g>
+ <title>PASS</title>
+ <ellipse cx="250" cy="100" rx="50" ry="30" fill="blue"/>
+ </g>
+
+ <a xlink:title="PASS" xlink:href="#">
+ <title>FAIL</title>
+ <ellipse id="e4" cx="400" cy="100" rx="50" ry="30" fill="blue"/>
+ </a>
+
+ <use xlink:href="#e1"/>
+
+ <use xlink:href="#e2">
+ <title>PASS</title>
+ </use>
+
+ <g>
+ <title>FAIL</title>
+ <ellipse id="e8" cx="400" cy="200" rx="50" ry="30" fill="blue">
+ <title>PASS</title>
+ </ellipse>
+ </g>
+
+ <use xlink:href="#e3"/>
+ <use xlink:href="#e4">
+ <title>PASS</title>
+ </use>
+
+
+</svg>
diff --git a/WebCore/manual-tests/visited-link-new-window.html b/WebCore/manual-tests/visited-link-new-window.html
new file mode 100644
index 0000000..5e10a34
--- /dev/null
+++ b/WebCore/manual-tests/visited-link-new-window.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Visited link coloring test</test>
+<style>
+:visited {
+ color: limegreen;
+}
+</style>
+</head>
+<body>
+<h1>Visited link coloring test</h1>
+<p>Make sure the link below is not colored as visited (delete the item
+for visited-link.html from your history and restart if
+necessary). Then cmd-click it. The link should turn lime green.</p>
+<a href="resources/visited-link.html">Am I a visited link?</a>
+</body>
+</html>