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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-picture-1x.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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-picture-1x-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLImageElement/image-picture-1x.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-picture-1x.html b/LayoutTests/fast/dom/HTMLImageElement/image-picture-1x.html
index dad51ad88cd20e23d69f95810a0ceeec06d052e8..6eef59d4fafd39a6a8ab83aaa0e2827844b7dbb4 100644
--- a/LayoutTests/fast/dom/HTMLImageElement/image-picture-1x.html
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-picture-1x.html
@@ -1,26 +1,27 @@
<!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("simple").clientWidth', '800');
- shouldBe('document.getElementById("simple").currentSrc', '"../../hidpi/resources/image-set-2x.png?2"');
+ shouldBe('currentSrcFileName("simple")', '"image-set-2x.png?2"');
shouldBe('document.getElementById("multiple").clientWidth', '800');
- shouldBe('document.getElementById("multiple").currentSrc', '"../../hidpi/resources/image-set-2x.png?2"');
+ shouldBe('currentSrcFileName("multiple")', '"image-set-2x.png?2"');
shouldBe('document.getElementById("other_children").clientWidth', '800');
- shouldBe('document.getElementById("other_children").currentSrc', '"../../hidpi/resources/image-set-2x.png?2"');
+ shouldBe('currentSrcFileName("other_children")', '"image-set-2x.png?2"');
shouldBe('document.getElementById("img_before_source").clientWidth', '75');
- shouldBe('document.getElementById("img_before_source").currentSrc', '"resources/blue_rect.jpg?1"');
+ shouldBe('currentSrcFileName("img_before_source")', '"blue_rect.jpg?1"');
shouldBe('document.getElementById("unknown_type").clientWidth', '1600');
- shouldBe('document.getElementById("unknown_type").currentSrc', '"resources/image-set-4x.png?3"');
+ shouldBe('currentSrcFileName("unknown_type")', '"image-set-4x.png?3"');
shouldBe('document.getElementById("empty_srcset").clientWidth', '1600');
- shouldBe('document.getElementById("empty_srcset").currentSrc', '"resources/image-set-4x.png?3"');
+ shouldBe('currentSrcFileName("empty_srcset")', '"image-set-4x.png?3"');
shouldBe('document.getElementById("no_srcset").clientWidth', '1600');
- shouldBe('document.getElementById("no_srcset").currentSrc', '"resources/image-set-4x.png?3"');
+ shouldBe('currentSrcFileName("no_srcset")', '"image-set-4x.png?3"');
}, false);
</script>
<!-- A canary image to see that the test is actually working -->
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-picture-1x-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698