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

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: Test that currentSrc is absolute 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 var fileName = function(src) {
esprehn 2014/05/20 06:56:04 function fileName(...)
2 var array = src.split('/');
3 return array[array.length -1];
4 };
5
6 var currentSrcFileName = function(id) {
esprehn 2014/05/20 06:56:04 function currentSrcFileName(...
7 var currentSrc = document.getElementById(id).currentSrc;
8 return fileName(currentSrc);
9 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698