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

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: Layout test readability 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..ef16194961a2ba65d6fe7e1a1ddc95fa25cb8438 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)) {
Timothy Loh 2015/09/25 14:22:05 just update fill-responsive.html instead?
nainar 2015/09/28 01:19:17 Done.
+ 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