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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js

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/resources/currentSrcHelper.js
diff --git a/LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js b/LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js
new file mode 100644
index 0000000000000000000000000000000000000000..b54e14bf691591cf33461053c72b1d5f11cbdb06
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js
@@ -0,0 +1,9 @@
+function fileName(src) {
+ var array = src.split('/');
+ return array[array.length -1];
+};
+
+function currentSrcFileName(id) {
+ var currentSrc = document.getElementById(id).currentSrc;
+ return fileName(currentSrc);
+};
« no previous file with comments | « LayoutTests/fast/dom/HTMLImageElement/image-sizes-js-innerhtml-expected.txt ('k') | Source/core/html/HTMLImageElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698