Index: third_party/WebKit/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects.js |
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects.js b/third_party/WebKit/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects.js |
index a6c6e27d9f25ae4fc0f9b4dc9c5b922aec46a469..998921273166675c3b9c08cdcbfe29edd8e74eec 100644 |
--- a/third_party/WebKit/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects.js |
+++ b/third_party/WebKit/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects.js |
@@ -136,6 +136,12 @@ if (window.internals) { |
window.onload = function() { |
// Run each general test case. |
var tests = document.querySelectorAll('.testcase'); |
+ |
+ // Add document wide touchend and touchcancel listeners and ensure the |
+ // listeners do not affect compositor hit test rects. |
+ document.documentElement.addEventListener('touchend', listener, false); |
+ document.documentElement.addEventListener('touchcancel', listener, false); |
+ |
for ( var i = 0; i < tests.length; i++) { |
// Force a compositing update before testing each case to ensure that |
// any subsequent touch rect updates are actually done because of |