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

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: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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 de5df11246e4c892a71c69273b4de31890eb591b..4e933b9f9fae9f534ede17902e3c462304e497a9 100644
--- a/tests/standalone/io/process_check_arguments_script.dart
+++ b/tests/standalone/io/process_check_arguments_script.dart
@@ -7,6 +7,20 @@
import "dart:math";
import "dart:io";
+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'));
« no previous file with comments | « tests/standalone/io/process_broken_pipe_test.dart ('k') | tests/standalone/io/process_check_arguments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698