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

Unified Diff: LayoutTests/fast/repaint/background-scaling.html

Issue 267333008: Convert fast/repaint/background-scaling.html to a reftest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix mac Created 6 years, 7 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/repaint/background-scaling-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/background-scaling.html
diff --git a/LayoutTests/fast/repaint/background-scaling.html b/LayoutTests/fast/repaint/background-scaling.html
index 9000673edb967a59b692bffb1a24ac6535d3cf1c..1444c1a423549e348ef94d8ad166ee5d4c38ea2a 100644
--- a/LayoutTests/fast/repaint/background-scaling.html
+++ b/LayoutTests/fast/repaint/background-scaling.html
@@ -1,15 +1,14 @@
-<html style="background-color: green;">
-<head>
-<script src="resources/text-based-repaint.js" type="text/javascript" charset="utf-8"></script>
+<!DOCTYPE html>
+<html style="background-color: blue;">
+<head>
<script type="text/javascript">
- function repaintTest()
- {
- if (window.eventSender)
- window.eventSender.setPageScaleFactor(0.25, 0, 0);
- }
+window.onload = function() {
+ if (window.eventSender)
+ window.eventSender.setPageScaleFactor(0.25, 0, 0);
+}
</script>
-</head>
-<body style="margin:0;" onload="runRepaintTest();">
- <div style="background-color: green; width: 100%; height: 100px;"></div>
+</head>
+<body style="margin:0; overflow: hidden; width: 4000px; height: 4000px">
+ <div style="background-color: green; width: 100vw; height: 100px;"></div>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/background-scaling-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698