4 <script src=
"../../../../resources/js-test.js"></script>
5 <script src=
"resources/gesture-helpers.js"></script>
6 <style type=
"text/css">
16 border-right:700px solid black
;
34 <body style=
"margin:0" onload=
"runTest();">
38 <div id=
"contents"></div>
42 <p id=
"description"></p>
43 <div id=
"console"></div>
44 <script type=
"text/javascript">
46 if (window
.testRunner
)
47 testRunner
.waitUntilDone();
51 if (window
.eventSender
) {
52 description('This tests that a gesture scroll is propagated from an ' +
53 'inner div to an outer div when the inner div has ' +
54 'remaining scroll offset on one axis, but not on the other.');
55 if (checkTestDependencies()) {
56 eventSender
.gestureScrollBegin(10, 10);
57 eventSender
.gestureScrollUpdate(-15, -20);
58 eventSender
.gestureScrollEnd(0, 0);
59 shouldBe("horizontal.scrollLeft", "15");
60 shouldBe("vertical.scrollTop", "20");
61 if (window
.testRunner
)
62 testRunner
.notifyDone();
67 debug("This test requires DumpRenderTree. Gesture-scroll the page diagonally to validate the implementation.");