Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / gesture / gesture-scroll-object-crash.html
blob59977c5540badbd695d45dda9fd68bd6a92fe9d9
1 <!DOCTYPE html>
2 <style>
3 #spacer {
4 height: 1000px;
6 #target {
7 width: 50px;
8 height: 50px;
10 </style>
11 <object id=target></object>
12 <div id=spacer></div>
13 <script src="../../../../resources/js-test.js"></script>
14 <script>
15 description("Verifies that scrolling on top of a LayoutPart with null widget works and doesn't crash.");
17 var sentEvents = false;
19 onload = function() {
20 var target = document.getElementById('target');
21 var rect = target.getBoundingClientRect();
22 var targetX = rect.left + rect.width / 2;
23 var targetY = rect.top + rect.height / 2;
24 eventSender.gestureScrollBegin(targetX, targetY);
25 eventSender.gestureScrollUpdate(0, -20);
26 eventSender.gestureScrollEnd(0,0);
27 sentEvents = true;
30 window.addEventListener('scroll', function(e) {
31 shouldBeTrue('sentEvents');
32 setTimeout(finishJSTest, 0);
33 });
35 jsTestIsAsync = true;
36 </script>