Chromium Code Reviews| 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..d7513b43b14b4c169aff46eaf3292975a928b228 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 to ensure the |
| + // listeners do not effect compositor hit test rects. |
|
tdresser
2016/04/13 18:44:40
Nittiest nit: effect -> affect
dtapuska
2016/04/13 18:49:08
Done.
|
| + 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 |