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

Unified Diff: tests/standalone/assert_test.dart

Issue 2984363004: Migrate first block of tests in standalone to standalone_2 (Closed)
Patch Set: Remove Expect.throws Created 3 years, 5 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/assert_test.dart
diff --git a/tests/standalone/assert_test.dart b/tests/standalone/assert_test.dart
deleted file mode 100644
index 17f9e314a5b467209cb8aa6b5e2e5b7b7f55cd98..0000000000000000000000000000000000000000
--- a/tests/standalone/assert_test.dart
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2011, 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.
-// VMOptions=--enable_asserts
-
-// Dart test program testing assert statements.
-
-import "package:expect/expect.dart";
-
-class AssertTest {
- static test() {
- try {
- assert(false);
- Expect.fail("Assertion 'false' didn't fail.");
- } on AssertionError catch (error) {
- Expect.isTrue(error.toString().contains("'false'"));
- Expect.isTrue(
- error.stackTrace.toString().contains("assert_test.dart:13:14"));
- }
- }
-
- static testClosure() {
- try {
- assert(() => false);
- Expect.fail("Assertion '() => false' didn't fail.");
- } on AssertionError catch (error) {
- Expect.isTrue(error.toString().contains("'() => false'"));
- Expect.isTrue(
- error.stackTrace.toString().contains("assert_test.dart:24:14"));
- }
- }
-
- static testMain() {
- test();
- testClosure();
- }
-}
-
-main() {
- AssertTest.testMain();
-}
« no previous file with comments | « tests/standalone/assert_assignable_canon_test.dart ('k') | tests/standalone/byte_array_view_optimized_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698