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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-picture-invalid.html

Issue 290803002: Return an absolute URL for HTMLImageElement.currentSrc (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and review nits Created 6 years, 7 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/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 -->

Powered by Google App Engine
This is Rietveld 408576698