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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 function fileName(src) {
2 var array = src.split('/');
3 return array[array.length -1];
4 };
5
6 function currentSrcFileName(id) {
7 var currentSrc = document.getElementById(id).currentSrc;
8 return fileName(currentSrc);
9 };
OLDNEW
« 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