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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: tests/kernel/unsorted/expect.dart
diff --git a/tests/kernel/unsorted/expect.dart b/tests/kernel/unsorted/expect.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4b3ffc88d5b6df08f96423315946aae2baf860f1
--- /dev/null
+++ b/tests/kernel/unsorted/expect.dart
@@ -0,0 +1,12 @@
+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.
+
+// We use this class until we support more language features to use
+// `package:expect`.
+class Expect {
+ static void isTrue(bool condition) {
+ if (!condition) {
+ print("Expect.isTrue(cond) failed. io.exit(1)ing");
+ io.exit(1);
+ }
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698