Sign in
webkit
/
WebKit
/
e7cca793f3088c00dd40a4e10a91d4129667688e
/
.
/
LayoutTests
/
fast
/
dom
/
HTMLImageElement
/
resources
/
currentSrcHelper.js
blob: b54e14bf691591cf33461053c72b1d5f11cbdb06 [
file
] [
log
] [
blame
]
function
fileName
(
src
)
{
var
array
=
src
.
split
(
'/'
);
return
array
[
array
.
length
-
1
];
};
function
currentSrcFileName
(
id
)
{
var
currentSrc
=
document
.
getElementById
(
id
).
currentSrc
;
return
fileName
(
currentSrc
);
};