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

Unified Diff: third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js

Issue 1363233003: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix interpolation tests Created 5 years, 3 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: third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js
diff --git a/third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js b/third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js
index e66918497022b2fc2da06e4dcf9e9346b7d34653..be2146cc04d2bcf26953206cd4ac5324512901c5 100644
--- a/third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js
+++ b/third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js
@@ -253,9 +253,9 @@ function testNotInheritedShapeChildProperty(property, parentValue, childValue, e
// Need to remove the base URL to avoid having local paths in the expected results.
function removeBaseURL(src) {
- var urlRegexp = /url\(([^\)]*)\)/g;
+ var urlRegexp = /url\(\"([^\)]*)\)/g;
return src.replace(urlRegexp, function(match, url) {
- return "url(" + url.substr(url.lastIndexOf("/") + 1) + ")";
+ return 'url("' + url.substr(url.lastIndexOf("/") + 1) + ")";
});
}

Powered by Google App Engine
This is Rietveld 408576698