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

Unified Diff: LayoutTests/fast/images/image-change-src.html

Issue 20473002: Update RenderImage when the image src is cleared (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-baselined one of the expected test result Created 7 years, 5 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/image-change-src.html
diff --git a/LayoutTests/fast/images/image-change-src.html b/LayoutTests/fast/images/image-change-src.html
new file mode 100644
index 0000000000000000000000000000000000000000..6b3096a3447ca6940f5179464cfd873a5548da6e
--- /dev/null
+++ b/LayoutTests/fast/images/image-change-src.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<head>
+<script>
+ function onload() {
+ document.getElementById("1").setAttribute("src", "");
+ document.getElementById("2").removeAttribute("src");
+ document.getElementById("3").setAttribute("src","resources/green.jpg");
+ }
+</script>
+</head>
+<body onLoad="onload()">
+<span>Test to check for image update when source is changed/cleared</span><br>
+<img id="3">
+<img alt="1" id="1" src="resources/green.jpg">
+<img alt="2" id="2" src="resources/green.jpg">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698