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

Side by Side Diff: tests/kernel/unsorted/expect.dart

Issue 2434123003: Merge more Kernel infrastructure from kernel_sdk SDK fork. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 import 'dart:io' as io;
Kevin Millikin (Google) 2016/10/21 09:10:57 Copyright header. We can actually use expect in t
Vyacheslav Egorov (Google) 2016/10/21 13:39:43 Done.
2
3 // We use this class until we support more language features to use
4 // `package:expect`.
5 class Expect {
6 static void isTrue(bool condition) {
7 if (!condition) {
8 print("Expect.isTrue(cond) failed. io.exit(1)ing");
9 io.exit(1);
10 }
11 }
12 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698