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

Unified Diff: LayoutTests/compositing/overflow/update-widget-positions-on-nested-frames-and-scrollers.html

Issue 719813002: Ensure scrolling causes updateWidgetPositions even on nested frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update TestExpectations Created 6 years, 1 month 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: LayoutTests/compositing/overflow/update-widget-positions-on-nested-frames-and-scrollers.html
diff --git a/LayoutTests/compositing/overflow/update-widget-positions-on-nested-frames-and-scrollers.html b/LayoutTests/compositing/overflow/update-widget-positions-on-nested-frames-and-scrollers.html
new file mode 100644
index 0000000000000000000000000000000000000000..6989fad9b1a3f92448bb66541c34817fdbd01913
--- /dev/null
+++ b/LayoutTests/compositing/overflow/update-widget-positions-on-nested-frames-and-scrollers.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ iframe {
+ top: 0;
+ left: 0;
+ height: 500px;
+ width: 500px;
+ border: 2px solid black;
+ }
+ </style>
+ <script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+ if (window.internals)
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+ </script>
+</head>
+
+<!--
+ This test scrolls a nested iframe down, then clicks on a select element. If
+ updateWidgetPositions() hasn't been called properly, this will cause the frame
+ to scroll to where it thinks the element being clicked on is. Javascript
+ execution will start in the onload handler in
+ resources/update-widget-positions-on-nested-frames-and-scrollers-inner-frame.html.
+-->
+<body>
+ <iframe src="resources/update-widget-positions-on-nested-frames-and-scrollers-outer-frame.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698