Chromium Code Reviews| 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"> |
|
spartha
2013/07/30 15:50:29
Added alt attribute for the images, without source
|
| +<img alt="2" id="2" src="resources/green.jpg"> |
| +</body> |
| +</html> |