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

Unified Diff: tests/standalone/io/process_check_arguments_script.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/standalone/io/process_check_arguments_script.dart
diff --git a/tests/standalone/io/process_check_arguments_script.dart b/tests/standalone/io/process_check_arguments_script.dart
index 6e9c086efc3426c0fcf8ce0cdf25d61f24d30769..8e8668c5a901f35720c657f52b81b2b106eb8c0f 100644
--- a/tests/standalone/io/process_check_arguments_script.dart
+++ b/tests/standalone/io/process_check_arguments_script.dart
@@ -6,6 +6,20 @@
// one dart process to another using the dart:io process interface.
import "dart:math";
+class Expect {
+ static void isTrue(x) {
+ if (!x) {
+ throw new Error("Not true");
+ }
+ }
+
+ static void equals(x, y) {
+ if (x != y) {
+ throw new Error("Not equal");
+ }
+ }
+}
+
main() {
var options = new Options();
Expect.isTrue(options.script.endsWith('process_check_arguments_script.dart'));

Powered by Google App Engine
This is Rietveld 408576698