Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: LayoutTests/fast/events/panScroll-nested-divs-forbidden.html

Issue 14767007: A div can be pan-scrolled beyond its overflow (Windows only) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test using panScroll.js Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/NeverFixTests ('k') | LayoutTests/fast/events/panScroll-nested-divs-forbidden-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/NeverFixTests ('k') | LayoutTests/fast/events/panScroll-nested-divs-forbidden-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698