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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/zoomed-offset-size.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 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: third_party/WebKit/LayoutTests/fast/images/zoomed-offset-size.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/zoomed-offset-size.html b/third_party/WebKit/LayoutTests/fast/images/zoomed-offset-size.html
deleted file mode 100644
index 619045f4b14d2f20d7ef1d27c25fd289c3c9adbb..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/zoomed-offset-size.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<title>Image should return a size of 250x166 regardless of zoom level.</title>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<div style="height:166px; width:250px; overflow:hidden;">
-<img src="resources/green-256x256.jpg" style="width: 100%; height:100%">
-<script>
-test(function() {
- var imageElement = document.querySelector('img');
- var wrapElement = document.querySelector('div');
- function testSize(zoomLevel) {
- document.body.style.zoom = zoomLevel;
- assert_equals(imageElement.offsetWidth, 250);
- assert_equals(imageElement.offsetHeight, 166);
- assert_equals(wrapElement.offsetWidth, 250);
- assert_equals(wrapElement.offsetHeight, 166);
- }
- for (var i = 90; i <= 200; i += 5)
- testSize(i/100);
- document.body.style.zoom = 1.0;
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698