Index: ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js |
=================================================================== |
--- ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js (revision 153551) |
+++ ppapi/native_client/tests/ppapi_browser/ppp_input_event/ppapi_ppp_input_event.js (working copy) |
@@ -8,9 +8,8 @@ |
////////////////////////////////////////////////////////////////////////////// |
// 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'); |
Property changes on: ppapi\native_client\tests\ppapi_browser\ppp_input_event\ppapi_ppp_input_event.js |
___________________________________________________________________ |
Added: svn:mime-type |
+ text/javascript |