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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/huge-image-viewport-scale.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/huge-image-viewport-scale.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/huge-image-viewport-scale.html b/third_party/WebKit/LayoutTests/fast/images/huge-image-viewport-scale.html
deleted file mode 100644
index 4d4cfe81d505795ba1425fab1d609e0e318aa166..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/huge-image-viewport-scale.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/run-after-layout-and-paint.js"></script>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
- testRunner.waitUntilDone();
-}
-
-onload = function() {
- var newWindow = window.open('resources/5000x5000.png', 'image', 'width=100,height=150');
- if (newWindow.internals)
- newWindow.internals.settings.setViewportEnabled(true);
- newWindow.onload = function() {
- runAfterLayoutAndPaint(function() {
- document.getElementById('output').textContent =
- '\nviewport meta: ' + newWindow.document.querySelector('meta').outerHTML
- + '\nimage style: ' + newWindow.document.querySelector('img').getAttribute('style')
- + '\nimage actual width: ' + newWindow.document.querySelector('img').offsetWidth;
- if (window.testRunner)
- testRunner.notifyDone();
- });
- };
-}
-</script>
-Tests huge image scaling when viewport is enabled. Requires DumpRenderTree.<br>
-To manual test, open resources/5000x5000.png in a viewport-capable browser (e.g. on Android or enable viewport emulation in DevTools).<br>
-Passes if the image shinks to fit the width.<br>
-<pre id="output"></pre>

Powered by Google App Engine
This is Rietveld 408576698