Chromium Code Reviews| Index: dart/frog/leg/lib/core.dart |
| diff --git a/dart/frog/leg/lib/core.dart b/dart/frog/leg/lib/core.dart |
| index 66db5e0c23d09921e8f7eaddee71deaa285ae194..6609f002ff4253730defd4285810c034c69e9e72 100644 |
| --- a/dart/frog/leg/lib/core.dart |
| +++ b/dart/frog/leg/lib/core.dart |
| @@ -335,6 +335,11 @@ class Expect { |
| static void _fail(String message) { |
| throw message; |
| } |
| + |
| + static void isTrue(var actual) { |
| + if (actual === true) return; |
| + _fail("Expect.isTrue($actual) fails."); |
| + } |
| } |
| class Stopwatch { |