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

Unified Diff: ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js

Issue 10869017: Fix run_ppapi_ppp_input_event_browser_test and re-enable it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « chrome/test/nacl_test_injection/buildbot_nacl_integration.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js
diff --git a/ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js b/ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js
index 3700a509c7cb96fd030d37189f3c25456a98809f..c93414403a65bf2e060df6d32f095e4a9fe1aaba 100644
--- a/ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js
+++ b/ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js
@@ -8,9 +8,8 @@ function setupTests(tester, plugin) {
//////////////////////////////////////////////////////////////////////////////
// These are the coordinates of the upper-left corner of the nacl plugin
- // TODO(mball): Avoid hardcoding this location by querying the location
- // of the plugin.
- var leftCorner = 8, topCorner = 79
+ var leftCorner = plugin.offsetLeft;
+ var topCorner = plugin.offsetTop;
function simulateMouseEvent(eventName) {
var event = document.createEvent('MouseEvents');
« no previous file with comments | « chrome/test/nacl_test_injection/buildbot_nacl_integration.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698