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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/scrollbar-appearance-increase-device-scale-factor.html

Issue 2377453004: Scrollbar width is set using thickness to compute correct rect size (Closed)
Patch Set: Added test expectations Created 4 years, 3 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/fast/hidpi/scrollbar-appearance-increase-device-scale-factor.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/scrollbar-appearance-increase-device-scale-factor.html b/third_party/WebKit/LayoutTests/fast/hidpi/scrollbar-appearance-increase-device-scale-factor.html
new file mode 100644
index 0000000000000000000000000000000000000000..fdee2fab272ccd7c4e422d22764cb66baea28d46
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/scrollbar-appearance-increase-device-scale-factor.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+ window.enablePixelTesting = true;
+ function finishTest() {
+ setTimeout(function() {testRunner.notifyDone();}, 0);
+ }
+ function scaleUp() {
+ if (testRunner) {
+ testRunner.setBackingScaleFactor(3, finishTest);
+ }
+ }
+ function startTest() {
+ testRunner.waitUntilDone();
+ setTimeout(scaleUp, 0);
+ }
+
+ window.addEventListener("load", startTest, false);
+</script>
+</head>
+<body>
+<div id="div" style="width:200px; height:120px; overflow:auto">
+ <br>This should be a scrollable text box with horizontal and vertical scroll.
+ <div style="width:400px; height: 200px; background-color:red"></div>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698