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

Unified Diff: third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.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: CSSPrimitiveValue and CSSSVGDocumentValue customCSSText changes 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/animations/responsive/resources/responsive-test.js
diff --git a/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js b/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js
index aacdbb60b1bff99f85951a597f4b465b20ff30af..c5d42f061cabd997b953a16354b747f57c24c97b 100644
--- a/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js
+++ b/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js
@@ -150,6 +150,10 @@ function runPendingResponsiveTests() {
var expectation = after.expect[i];
var actual = getComputedStyle(target)[property];
test(function() {
+ if (/url\(([^\)]*)\)/g.test(expectation.is) && !/url\(\"([^\)]*)\"\)/g.test(expectation.is)) {
+ var url = /url\(([^\)]*)\)/g.exec(expectation.is)[1];
+ expectation.is = 'url(\"' + url + '\")';
+ }
assert_equals(actual, expectation.is);
}, `Animation on property <${property}> from [${from}] to [${to}] with ${JSON.stringify(before.state)} changed to ${JSON.stringify(after.state)} at (${expectation.at}) is [${expectation.is}]`);
}

Powered by Google App Engine
This is Rietveld 408576698