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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/horizontal-smooth-scroll-in-rtl.html

Issue 1776503002: Account for scroll origin in scroll animators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: super-nit Created 4 years, 9 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
Index: third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/horizontal-smooth-scroll-in-rtl.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/horizontal-smooth-scroll-in-rtl.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/horizontal-smooth-scroll-in-rtl.html
new file mode 100644
index 0000000000000000000000000000000000000000..e011d22e294cc6ad7e75822abb65ef3281e880de
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/horizontal-smooth-scroll-in-rtl.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<script src="../../../../../resources/js-test.js"></script>
+<style>
+
+html {
+ writing-mode: vertical-rl;
+ width: 1000px;
+}
+
+</style>
+<script>
+
+var jsTestIsAsync = true;
+
+description("This test verifies that both input-driven and programmatic " +
+ "smooth scrolls serviced by the compositor thread go to the correct " +
+ "scroll position on RTL pages with horizontal overflow.");
+
+onload = function() {
+ if (!window.eventSender) {
+ debug("This test requires window.eventSender.")
+ finishJSTest();
+ return;
+ }
+
+ // Start scrolled due to http://crbug.com/592799.
+ scrollBy(-120, 0);
+
+ // Click scrollbar stepper.
+ eventSender.mouseMoveTo(795, 595);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+
+ shouldBecomeEqual("scrollX", "-80", function() {
+ scrollBy({left: 40, behavior: "smooth"});
+ shouldBecomeEqual("scrollX", "-40", finishJSTest);
+ });
+};
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698