Index: LayoutTests/fast/dom/HTMLImageElement/image-picture-invalid.html |
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-picture-invalid.html b/LayoutTests/fast/dom/HTMLImageElement/image-picture-invalid.html |
index a1d42a5550b7078b7600cada563ee595ee483fa9..18a878ad180387aa68bf639f55888a3a11c5e229 100644 |
--- a/LayoutTests/fast/dom/HTMLImageElement/image-picture-invalid.html |
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-picture-invalid.html |
@@ -1,20 +1,21 @@ |
<!DOCTYPE html> |
<script src="../../../resources/js-test.js"></script> |
+<script src="resources/currentSrcHelper.js"></script> |
<script> |
if (window.testRunner) |
testRunner.dumpAsText(); |
addEventListener("load", function() { |
shouldBe('document.getElementById("canary").clientWidth', '75'); |
- shouldBe('document.getElementById("canary").currentSrc', '"resources/blue_rect.jpg?0"'); |
+ shouldBe('currentSrcFileName("canary")', '"blue_rect.jpg?0"'); |
shouldBe('document.getElementById("div_end_picture").clientWidth', '800'); |
- shouldBe('document.getElementById("div_end_picture").currentSrc', '"../../hidpi/resources/image-set-2x.png?2"'); |
+ shouldBe('currentSrcFileName("div_end_picture")', '"image-set-2x.png?2"'); |
shouldBe('document.getElementById("div_multiple_end").clientWidth', '800'); |
- shouldBe('document.getElementById("div_multiple_end").currentSrc', '"../../hidpi/resources/image-set-2x.png?2"'); |
+ shouldBe('currentSrcFileName("div_multiple_end")', '"image-set-2x.png?2"'); |
shouldBe('document.getElementById("source_in_div").clientWidth', '75'); |
- shouldBe('document.getElementById("source_in_div").currentSrc', '"resources/blue_rect.jpg"'); |
+ shouldBe('currentSrcFileName("source_in_div")', '"blue_rect.jpg"'); |
shouldBe('document.getElementById("not_in_picture").clientWidth', '75'); |
- shouldBe('document.getElementById("not_in_picture").currentSrc', '"resources/blue_rect.jpg"'); |
+ shouldBe('currentSrcFileName("not_in_picture")', '"blue_rect.jpg"'); |
}, false); |
</script> |
<!-- A canary image to see that the test is actually working --> |