OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 debug = function debug(msg) | 5 debug = function debug(msg) |
6 { | 6 { |
7 console.log(msg); | 7 console.log(msg); |
8 }; | 8 }; |
9 | 9 |
10 description = function description(msg, quiet) | 10 description = function description(msg, quiet) |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 function shouldBeEqualToString(a, b) | 182 function shouldBeEqualToString(a, b) |
183 { | 183 { |
184 if (typeof a !== "string" || typeof b !== "string") | 184 if (typeof a !== "string" || typeof b !== "string") |
185 debug("WARN: shouldBeEqualToString() expects string arguments"); | 185 debug("WARN: shouldBeEqualToString() expects string arguments"); |
186 var unevaledString = JSON.stringify(b); | 186 var unevaledString = JSON.stringify(b); |
187 shouldBe(a, unevaledString); | 187 shouldBe(a, unevaledString); |
188 } | 188 } |
189 | 189 |
190 function shouldBeTrue(a, quiet) { shouldBe(a, "true", quiet); } | 190 function shouldBeTrue(a, quiet) { shouldBe(a, "true", quiet); } |
191 function shouldBeFalse(a, quiet) { shouldBe(a, "false", quiet); } | 191 function shouldBeFalse(a, quiet) { shouldBe(a, "false", quiet); } |
OLD | NEW |