11 <object id=target
></object>
13 <script src=
"../../../../resources/js-test.js"></script>
15 description("Verifies that scrolling on top of a LayoutPart with null widget works and doesn't crash.");
17 var sentEvents
= false;
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);
30 window
.addEventListener('scroll', function(e
) {
31 shouldBeTrue('sentEvents');
32 setTimeout(finishJSTest
, 0);