Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js |
| diff --git a/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js b/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js |
| index 19ce36406b93906c3528d22a15ab209181b53c3b..f27b017a69c15f25a7d4d415cca1c6373939de7a 100644 |
| --- a/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js |
| +++ b/third_party/WebKit/LayoutTests/animations/interpolation/resources/interpolation-test.js |
| @@ -210,7 +210,7 @@ |
| var matches = value.match(/url\([^\)]*\)/g); |
|
Timothy Loh
2015/09/28 06:18:13
should update this too
nainar
2015/09/28 07:22:54
Done.
|
| if (matches !== null) { |
| for (var i = 0; i < matches.length; ++i) { |
| - var url = /url\(([^\)]*)\)/g.exec(matches[i])[1]; |
| + var url = /url\(("|')([^\)]*)('|")\)/g.exec(matches[i])[2]; |
|
Timothy Loh
2015/09/28 06:18:13
does this work with just "? Otherwise it'd be bett
nainar
2015/09/28 07:22:54
Done.
|
| anchor.href = url; |
| anchor.pathname = '...' + anchor.pathname.substring(anchor.pathname.lastIndexOf('/')); |
| value = value.replace(matches[i], 'url(' + anchor.href + ')'); |