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

Unified Diff: tests/kernel/unsorted/expect.dart

Issue 2451623006: Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork." (Closed)
Patch Set: Fix 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..e1a215f9ec6758b828bbea67a0217aa3436423f2
--- /dev/null
+++ b/tests/kernel/unsorted/expect.dart
@@ -0,0 +1,16 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'dart:io' as io;
+
+// 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);
+ }
+ }
+}
« no previous file with comments | « tests/kernel/unsorted/constant_expressions_test.dart ('k') | tests/kernel/unsorted/factory_regression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698