| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 function shouldBeEqualToString(a, b) | 141 function shouldBeEqualToString(a, b) |
| 142 { | 142 { |
| 143 if (typeof a !== "string" || typeof b !== "string") | 143 if (typeof a !== "string" || typeof b !== "string") |
| 144 debug("WARN: shouldBeEqualToString() expects string arguments"); | 144 debug("WARN: shouldBeEqualToString() expects string arguments"); |
| 145 var unevaledString = JSON.stringify(b); | 145 var unevaledString = JSON.stringify(b); |
| 146 shouldBe(a, unevaledString); | 146 shouldBe(a, unevaledString); |
| 147 } | 147 } |
| 148 | 148 |
| 149 function shouldBeTrue(a, quiet) { shouldBe(a, "true", quiet); } | 149 function shouldBeTrue(a, quiet) { shouldBe(a, "true", quiet); } |
| 150 function shouldBeFalse(a, quiet) { shouldBe(a, "false", quiet); } | 150 function shouldBeFalse(a, quiet) { shouldBe(a, "false", quiet); } |
| OLD | NEW |