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

Unified Diff: third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/pointer-event-properties-in-iframe.html

Issue 1960233002: Fix mouse pointer event clientX/Y (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a typo Created 4 years, 7 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
Index: third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/pointer-event-properties-in-iframe.html
diff --git a/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/pointer-event-properties-in-iframe.html b/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/pointer-event-properties-in-iframe.html
index fd7dbb384e6925a00044fd8f241100397d53eb5b..bcd68dd21e4180249ee23786fa06faea00679b4a 100644
--- a/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/pointer-event-properties-in-iframe.html
+++ b/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/pointer-event-properties-in-iframe.html
@@ -15,7 +15,8 @@ iframe {
<body style='height:500px; width: 500px; padding: 0; margin: 0;'>
<script>
var testEventList = ['pointerup', 'pointerdown', 'pointermove',
- 'touchstart', 'touchmove', 'touchend'];
+ 'touchstart', 'touchmove', 'touchend',
+ 'mouseup', 'mousedown', 'mousemove'];
testEventList.forEach(function(eventName) {
document.documentElement.addEventListener(eventName, function(event) {
top.document.events.push(event);
@@ -42,6 +43,14 @@ function testScenario(scrollX, scrollY, zoomFactor) {
document.getElementById('target').contentWindow.scrollTo(scrollX, scrollY);
window.internals.setZoomFactor(zoomFactor);
+ debug(' *** Mouse events inside iframe ***');
+ // mouse events inside iframe
+ eventSender.mouseMoveTo(200, 200);
+ eventSender.mouseDown(0);
+ eventSender.mouseUp(0);
+ dumpEvents();
+
+ debug(' *** Touch events inside iframe ***');
// touch events inside iframe
eventSender.addTouchPoint(200, 200)
eventSender.touchStart();
@@ -54,7 +63,7 @@ function testScenario(scrollX, scrollY, zoomFactor) {
debug('');
}
-function runTests(scrollX, scrollY) {
+function runTests() {
testScenario(25, 100, 1);
testScenario(40, 140, 1);
testScenario(40, 140, 2);
@@ -75,6 +84,11 @@ function dumpEvents()
attributes.forEach(function(att) {
debug(att + " = " + event.changedTouches[0][att]);
});
+ } else {
+ debug(event.type + " is recieved:");
+ attributes.forEach(function(att) {
+ debug(att + " = " + event[att]);
+ });
}
});
document.events = [];
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/pointer-event-properties-in-iframe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698