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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/media-query-as-background-with-zoom.html

Issue 1908463002: Modernize fast/hidpi layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NeedsManualRebaseline Created 4 years, 8 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/media-query-as-background-with-zoom.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/media-query-as-background-with-zoom.html b/third_party/WebKit/LayoutTests/fast/hidpi/media-query-as-background-with-zoom.html
index 524b0568c19774023cc0d7b9b0a3bf55d66d8ef7..36de3e1721a4676e1be71d9414c5ef2a5fb518a8 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/media-query-as-background-with-zoom.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/media-query-as-background-with-zoom.html
@@ -1,31 +1,22 @@
-<html>
+<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
-<head>
<style>
-
-@media only screen and (-webkit-min-device-pixel-ratio: 1.0) {
- #foo { background-color: red; }
-}
-
-@media only screen and (-webkit-min-device-pixel-ratio: 1.1) {
- #foo { background-color: blue; }
-}
-
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.0) {
+ #foo { background-color: red; }
+ }
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.1) {
+ #foo { background-color: blue; }
+ }
</style>
-</head>
-<body id="body">
- <div id=foo></div>
-</body>
+<div id=foo></div>
<script>
-if (window.eventSender)
- window.eventSender.zoomPageIn();
-
-test(function() {
- var div = document.getElementById("foo");
- var computedStyle = window.getComputedStyle(div, null);
- assert_equals(computedStyle.getPropertyValue('background-color'),
- 'rgb(0, 0, 255)');
-}, "media query with zoom");
+ if (window.eventSender)
+ window.eventSender.zoomPageIn();
+ test(function() {
+ var div = document.getElementById("foo");
+ var computedStyle = window.getComputedStyle(div, null);
+ assert_equals(computedStyle.getPropertyValue('background-color'),
+ 'rgb(0, 0, 255)');
+ }, "media query with zoom");
</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698