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

Unified Diff: LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-null-src-load.html

Issue 1047803005: Allow the "img.src='';img.src='.." idiom to clear down images immediately. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 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/fast/images/onload-event-when-reloading-image-after-interrupted-null-src-load.html
diff --git a/LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-broken-image-load.html b/LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-null-src-load.html
similarity index 84%
copy from LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-broken-image-load.html
copy to LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-null-src-load.html
index 537c6efb91af141365a9f862fb066e32ecbe004f..9b8b9f89b1b50211ff0a1df313a76d7ed08a323b 100644
--- a/LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-broken-image-load.html
+++ b/LayoutTests/fast/images/onload-event-when-reloading-image-after-interrupted-null-src-load.html
@@ -8,7 +8,7 @@
img = new Image();
var onloadCounter = 0;
var testImage = 'resources/green.jpg';
- var resetImage = 'resources/bad-png.png';
+ var resetImage = '';
img.onload = function(){
onloadCounter++;
debug("Image onload event fired for " + img.src.substring(img.src.lastIndexOf('/') + 1));
@@ -34,6 +34,6 @@
</script>
<div id="console">
crbug.com/469678: We should fire an image load event even if the image is the last one we loaded successfully.<br>
-In this test we load an image. Then we make a request for a broken image which doesn't get the chance to complete before we attempt to load the same image again.<br>
+In this test we load an image. Then we make a null request (img.src='') which should clear down the image before we attempt to load the same image again.<br>
</div>
<div id="result">FAIL</div>

Powered by Google App Engine
This is Rietveld 408576698