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

Unified Diff: LayoutTests/platform/chromium/permissionclient/image-permissions.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: LayoutTests/platform/chromium/permissionclient/image-permissions.html
diff --git a/LayoutTests/platform/chromium/permissionclient/image-permissions.html b/LayoutTests/platform/chromium/permissionclient/image-permissions.html
deleted file mode 100644
index f57a3b707043309c2fab2ff92c3e9e2c6e419647..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/permissionclient/image-permissions.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<html>
-<head>
-<script>
-// Blocked images can be reloaded, so neither onload nor onerror is called.
-// Only check here that onload is never called when image is blocked.
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.dumpPermissionClientCallbacks();
-}
-
-function log(a)
-{
- document.getElementById("results").innerHTML += a + "<br>";
-}
-
-function loaded()
-{
- log("PASS: first image loaded");
- if (window.testRunner && testRunner.setImagesAllowed)
- testRunner.setImagesAllowed(false);
- else
- log("This test requires testRunner.setImagesAllowed, so it be can't run in a browser.");
-
- // Load an image not in cache.
- var img = document.createElement('img');
- img.onload = function () { log("FAIL: not cached image loaded"); }
- img.src = "resources/boston.gif?nocache";
- document.getElementById("img").appendChild(img);
-
- // Load an image from cache.
- var imgFromCache = document.createElement('img');
- imgFromCache.onload = function () { log("FAIL: image from cache loaded"); }
- imgFromCache.src = "resources/boston.gif";
- document.getElementById("img").appendChild(imgFromCache);
-
- // Add an iframe with an image.
- var iframe = document.createElement('iframe');
- iframe.src = "resources/image.html";
- document.getElementById("img").appendChild(iframe);
-}
-</script>
-</head>
-<body>
-<img src="resources/boston.gif" onload="loaded()">
-<div id="img"></div>
-<div id="results"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698