Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: LayoutTests/fast/events/shadow-boundary-crossing.html

Issue 6469009: Merge 78077 - 2011-02-08 Dimitri Glazkov <dglazkov@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/events/shadow-boundary-crossing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/shadow-boundary-crossing.html
===================================================================
--- LayoutTests/fast/events/shadow-boundary-crossing.html (revision 78113)
+++ LayoutTests/fast/events/shadow-boundary-crossing.html (working copy)
@@ -9,7 +9,7 @@
logDiv.appendChild(document.createElement('div')).textContent = msg + ': ' + (success ? 'PASS' : 'FAIL');
}
-function clickOn(element)
+function moveOver(element)
{
if (!window.eventSender)
return;
@@ -17,6 +17,11 @@
var x = element.offsetLeft + element.offsetWidth / 2;
var y = element.offsetTop + element.offsetHeight / 2;
eventSender.mouseMoveTo(x, y);
+}
+
+function clickOn(element)
+{
+ moveOver(element);
eventSender.mouseDown();
eventSender.mouseUp();
}
@@ -100,6 +105,22 @@
document.body.removeEventListener('DOMActivate', counter, false);
fileInput.parentNode.removeChild(fileInput);
},
+ relatedTargetRetargeting: function()
+ {
+ var count = 0;
+ var textInput = document.body.appendChild(document.createElement('input'));
+ var counter = function(evt)
+ {
+ if (evt.relatedTarget && !evt.relatedTarget.parentNode)
+ count++;
+ }
+ moveOver(textInput);
+ document.body.addEventListener("mouseover", counter, false);
+ moveOver(document.body);
+ document.body.removeEventListener("mouseover", counter, false);
+ log("Event's relatedTarget should be retargeted", count == 0);
+ textInput.parentNode.removeChild(textInput);
+ },
eventInProgress: function()
{
var textInput = document.body.appendChild(document.createElement('input'));
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/events/shadow-boundary-crossing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698