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

Unified Diff: LayoutTests/fast/loader/display-image-unset-can-block-image-and-can-reload-in-place.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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/fast/loader/display-image-unset-can-block-image-and-can-reload-in-place.html
diff --git a/LayoutTests/fast/loader/display-image-unset-can-block-image-and-can-reload-in-place.html b/LayoutTests/fast/loader/display-image-unset-can-block-image-and-can-reload-in-place.html
deleted file mode 100644
index 312f509d543b7a5a7d47d191b788663e6d261977..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/loader/display-image-unset-can-block-image-and-can-reload-in-place.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-<head>
-<script>
-// Setting WebKitDisplayImagesKey is asynchronous, so using queueReload and setInterval to check when the setting actually take effect.
-
-var intervalId;
-var imageOnloadFired = 0;
-
-if (window.testRunner) {
- testRunner.dumpAsText();
- window.internals.settings.setImagesEnabled(true);
- testRunner.overridePreference('WebKitDisplayImagesKey', 0);
- testRunner.queueReload();
-}
-
-function runTest()
-{
- var image = document.getElementById('image');
- if (image.naturalHeight != 0 || image.naturalWidth != 0 || imageOnloadFired != 0) {
- document.getElementById('result').innerHTML = 'FAILURE: Image should not be loaded when DisplayImage is unset';
- return;
- }
-
- testRunner.overridePreference('WebKitDisplayImagesKey', 1);
- document.getElementById('result').innerHTML = 'FAILURE: Image should reload in-place when DispalyImage is changes from unset to set';
- testRunner.waitUntilDone();
- intervalId = window.setInterval(runTestRest, 10);
-}
-
-function runTestRest()
-{
- var image = document.getElementById('image');
- if (image.naturalHeight == 33 && image.naturalWidth == 37 && imageOnloadFired == 1) {
- document.getElementById('result').innerHTML = 'SUCCESS';
- window.clearInterval(intervalId);
- testRunner.notifyDone();
- }
-}
-</script>
-</head>
-<body onload="runTest()">
- Test that DisplayImages disabled can block http image and can be reloaded in-place when toggled.
- <div id="result">FAILURE: Test script didn't run.</div>
- <img id="image" src="../images/resources/oval.png" onload="imageOnloadFired=1;">
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698