summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 01:23:35 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 01:23:35 +0000
commitad8f45634589ccfb80f1f1d4cf0965c739014a71 (patch)
tree9ca6869a998e76781163ef9410340da3ca75242a /ppapi
parent16c73d932aacee6768932ec5d1e3175c534e4361 (diff)
downloadchromium_src-ad8f45634589ccfb80f1f1d4cf0965c739014a71.zip
chromium_src-ad8f45634589ccfb80f1f1d4cf0965c739014a71.tar.gz
chromium_src-ad8f45634589ccfb80f1f1d4cf0965c739014a71.tar.bz2
ppapi: Fix expectation for touch-event location.
BUG=none Review URL: https://codereview.chromium.org/11099028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/tests/test_input_event.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/ppapi/tests/test_input_event.cc b/ppapi/tests/test_input_event.cc
index a459cd71..c55912d 100644
--- a/ppapi/tests/test_input_event.cc
+++ b/ppapi/tests/test_input_event.cc
@@ -277,12 +277,8 @@ bool TestInputEvent::AreEquivalentEvents(PP_Resource received,
expected_point.pressure != received_point.pressure)
return false;
- // The expected position is in the page coordinate system, and the
- // received event is in the plugins coordinate system.
- if (expected_point.position.x != received_point.position.x +
- view_rect_.x() ||
- expected_point.position.y != received_point.position.y +
- view_rect_.y())
+ if (expected_point.position.x != received_point.position.x ||
+ expected_point.position.y != received_point.position.y)
return false;
}
return true;