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

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: 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..fb6b7b6dab4843b7c854880559b428945a29dc4c
--- /dev/null
+++ b/LayoutTests/fast/images/image-change-src.html
@@ -0,0 +1,18 @@
+<html>
esprehn 2013/07/29 18:52:37 Same
+<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 id="1" src="resources/green.jpg">
+<img id="2" src="resources/green.jpg">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698