Commit 6e34f5e0 authored by dbates@webkit.org's avatar dbates@webkit.org

2011-04-07 Daniel Bates <dbates@rim.com>

        Reviewed by Darin Adler.

        Add a layout test to ensure that mousemove is fired from a subframe
        https://bugs.webkit.org/show_bug.cgi?id=58094

        * fast/events/iframe-onmousemove-expected.txt: Added.
        * fast/events/iframe-onmousemove.html: Added.
        * fast/events/resources/iframe-onmousemove.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a1006774
2011-04-07 Daniel Bates <dbates@rim.com>
Reviewed by Darin Adler.
Add a layout test to ensure that mousemove is fired from a subframe
https://bugs.webkit.org/show_bug.cgi?id=58094
* fast/events/iframe-onmousemove-expected.txt: Added.
* fast/events/iframe-onmousemove.html: Added.
* fast/events/resources/iframe-onmousemove.html: Added.
2011-04-07 Csaba Osztrogonác <ossy@webkit.org>
[Qt][WK2] Decrease flakiness of test results.
This test can be used to verify that a mousemove event is fired when moving the mouse cursor over an element in a subframe.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS received mousemove event.
TEST COMPLETE
<html>
<head>
<link rel="stylesheet" href="../js/resources/js-test-style.css">
<script src="../js/resources/js-test-pre.js"></script>
<script>
if (window.layoutTestController)
layoutTestController.waitUntilDone();
var testFinished = false;
function done()
{
if (testFinished)
return;
testFinished = true;
testPassed("received mousemove event.");
debug('<br /><span class="pass">TEST COMPLETE</span>');
if (window.layoutTestController)
layoutTestController.notifyDone();
}
function runTest()
{
if (!window.eventSender)
return;
var frame = document.getElementById("frame");
var centerX = frame.offsetLeft + frame.offsetWidth / 2;
var centerY = frame.offsetTop + frame.offsetHeight / 2;
eventSender.mouseMoveTo(centerX, centerY);
}
window.onload = runTest;
</script>
</head>
<body>
<p id="description"></p>
<iframe id="frame" src="resources/iframe-onmousemove.html"></iframe>
<div id="console"></div>
<script>
description("This test can be used to verify that a mousemove event is fired when moving the mouse cursor over an element in a subframe.");
var successfullyParsed = true;
</script>
</body>
</html>
<html>
<head>
<style>
/* We center the square so as to simplify the eventSender logic in parent.runTest(). */
#test-container { margin: 0px auto; width: 128px; height: 128px; }
#square { display: table-cell; text-align: center; vertical-align: middle; width: inherit; height: inherit; color: black; border: 1px dashed; }
</style>
</head>
<body>
<div id="test-container">
<div id="square" onmousemove="parent.done()">Mouse over me.</div>
</div>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment