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

Unified Diff: tests/standalone/src/AssertTest.dart

Issue 10252020: test rename overhaul: step 12 - standalone (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « tests/standalone/pass_test.dart ('k') | tests/standalone/src/BlackListedTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/AssertTest.dart
diff --git a/tests/standalone/src/AssertTest.dart b/tests/standalone/src/AssertTest.dart
deleted file mode 100644
index acc6e9aa2184cb65bc5ad5e899dee9a39944fa39..0000000000000000000000000000000000000000
--- a/tests/standalone/src/AssertTest.dart
+++ /dev/null
@@ -1,54 +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.
-
-class AssertTest {
- static test() {
- int i = 0;
- try {
- assert(false);
- } catch (AssertionError error) {
- i = 1;
- Expect.equals("false", error.failedAssertion);
- int pos = error.url.lastIndexOf("/", error.url.length);
- if (pos == -1) {
- pos = error.url.lastIndexOf("\\", error.url.length);
- }
- String subs = error.url.substring(pos + 1, error.url.length);
- Expect.equals("AssertTest.dart", subs);
- Expect.equals(12, error.line);
- Expect.equals(14, error.column);
- }
- return i;
- }
- static testClosure() {
- int i = 0;
- try {
- assert(() => false);
- } catch (AssertionError error) {
- i = 1;
- Expect.equals("() => false", error.failedAssertion);
- int pos = error.url.lastIndexOf("/", error.url.length);
- if (pos == -1) {
- pos = error.url.lastIndexOf("\\", error.url.length);
- }
- String subs = error.url.substring(pos + 1, error.url.length);
- Expect.equals("AssertTest.dart", subs);
- Expect.equals(30, error.line);
- Expect.equals(14, error.column);
- }
- return i;
- }
-
- static testMain() {
- Expect.equals(1, test());
- Expect.equals(1, testClosure());
- }
-}
-
-main() {
- AssertTest.testMain();
-}
« no previous file with comments | « tests/standalone/pass_test.dart ('k') | tests/standalone/src/BlackListedTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698