| Index: LayoutTests/fast/events/panScroll-nested-divs-forbidden.html
|
| diff --git a/LayoutTests/fast/events/panScroll-nested-divs-forbidden.html b/LayoutTests/fast/events/panScroll-nested-divs-forbidden.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9c23a284522b5bd60150d6cea77327192f15fbe8
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/events/panScroll-nested-divs-forbidden.html
|
| @@ -0,0 +1,53 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<style type="text/css">
|
| +div {
|
| + line-height: 50px;
|
| +}
|
| +#outerdiv {
|
| + overflow:auto;
|
| + border: 2px solid #000FFF;
|
| +}
|
| +#innerdiv {
|
| + overflow:auto;
|
| + border: 2px solid #000000;
|
| + width: 121%;
|
| + padding: 5px;
|
| +}
|
| +</style>
|
| +<script src="../js/resources/js-test-pre.js"></script>
|
| +<script src="./resources/panScroll.js"></script>
|
| +<script>
|
| +function start()
|
| +{
|
| + outerdiv = $('outerdiv');
|
| +
|
| + testPanScroll({
|
| + 'clickOrDrag': 'drag',
|
| + 'endX': 225,
|
| + 'endY': 75,
|
| + 'finishTest': function() {
|
| + shouldNotBe('outerdiv.scrollLeft', '0');
|
| + shouldBeZero('outerdiv.scrollTop');
|
| + },
|
| + 'scrollable': outerdiv,
|
| + 'startX': 150,
|
| + 'startY': 150,
|
| + });
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="start()">
|
| +<div id="outerdiv">
|
| + <p>Top of outer div.</p>
|
| + <div id="innerdiv">
|
| + <p>Inner div.</p>
|
| + </div>
|
| + <p>Bottom of outer div.</p>
|
| +</div>
|
| +<p>Test for <a href="http://crbug.com/232965">bug 232965</a> This tests that vertical pan scrolling does not propagate from the inner div to the outer div when the outer div has no vertical overflow.</p>
|
| +<div id="console"></div>
|
| +<script src="../js/resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|