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

Unified Diff: LayoutTests/fast/scroll-behavior/precise-delta-no-animate.html

Issue 831393003: Plumb hasPreciseScrollingDeltas into ScrollGranularity for overflow scrolls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove testRunner.dumpAsText() Created 5 years, 11 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 | « no previous file | LayoutTests/fast/scroll-behavior/precise-delta-no-animate-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/scroll-behavior/precise-delta-no-animate.html
diff --git a/LayoutTests/fast/scroll-behavior/precise-delta-no-animate.html b/LayoutTests/fast/scroll-behavior/precise-delta-no-animate.html
new file mode 100644
index 0000000000000000000000000000000000000000..96303ca581f4c53d3507896ef4c749522fb5d5e9
--- /dev/null
+++ b/LayoutTests/fast/scroll-behavior/precise-delta-no-animate.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<style>
+
+#container {
+ width: 200px;
+ height: 200px;
+ overflow: scroll;
+}
+
+#content {
+ width: 7500px;
+ height: 7500px;
+ background-color: blue;
+}
+
+</style>
+<script src="../../resources/js-test.js"></script>
+<div id="container">
+ <div id="content"></div>
+</div>
+<div id="console"></div>
+<script>
+
+jsTestIsAsync = true;
+element = document.getElementById("container");
+
+function runTest() {
+ element.addEventListener("scroll", function() {
+ shouldBe("element.scrollTop", "80");
+ finishJSTest();
+ });
+
+ eventSender.mouseMoveTo(100, 100);
+ eventSender.mouseScrollBy(0, -2, /* paged */ false,
+ /* has_precise_scrolling_deltas */ true);
+}
+
+description("Tests that a WebMouseWheelEvent with hasPreciseScrollingDeltas " +
+ "does not produce an animated scroll");
+
+if (window.eventSender)
+ runTest();
+else
+ debug("FAIL: This test requires window.eventSender.");
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/scroll-behavior/precise-delta-no-animate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698