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

Unified Diff: third_party/WebKit/LayoutTests/resources/js-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/resources/js-test.js
diff --git a/third_party/WebKit/LayoutTests/resources/js-test.js b/third_party/WebKit/LayoutTests/resources/js-test.js
index ba1d8acddd5a9f64898389d1ea286d6425746baf..6c81b2a36b8175b14d0dc3cd1f47ad99f240f880 100644
--- a/third_party/WebKit/LayoutTests/resources/js-test.js
+++ b/third_party/WebKit/LayoutTests/resources/js-test.js
@@ -263,8 +263,9 @@ function shouldBe(_a, _b, quiet, opt_tolerance)
if (!quiet) {
testPassed(_a + " is " + _b);
}
- } else if (typeof(_av) == typeof(_bv))
+ } else if (typeof(_av) == typeof(_bv)){
testFailed(_a + " should be " + _bv + ". Was " + stringify(_av) + ".");
+ }
else
testFailed(_a + " should be " + _bv + " (of type " + typeof _bv + "). Was " + _av + " (of type " + typeof _av + ").");
}

Powered by Google App Engine
This is Rietveld 408576698