Index: LayoutTests/http/tests/images/image-currentsrc-redirect.html |
diff --git a/LayoutTests/http/tests/images/image-currentsrc-redirect.html b/LayoutTests/http/tests/images/image-currentsrc-redirect.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..71c79751a4004199a81e421b3fa4a4ee09f94656 |
--- /dev/null |
+++ b/LayoutTests/http/tests/images/image-currentsrc-redirect.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<script src="/js-test-resources/js-test.js"></script> |
+<body> |
+<script> |
+ document.body.innerHTML += '<img id="redirect" src="http://127.0.0.1:8000/resources/slow-image.php?redirect_name=square100.png&mimeType=image/png&sleep=100">'; |
+ jsTestIsAsync = true; |
+ var img_redirect = window.document.getElementById("redirect"); |
+ img_redirect.onload = function() { |
+ shouldBe('img_redirect.currentSrc', '"http://127.0.0.1:8000/resources/slow-image.php?redirect_name=square100.png&mimeType=image/png&sleep=100"'); |
+ }; |
+ window.onload = function() { |
+ finishJSTest(); |
+ }; |
+</script> |
+</body> |