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

Unified Diff: tests/fletch_tests/self_tests.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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/fletch_tests/multiprogram_tests.dart ('k') | tests/fletch_tests/sentence_tests.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/fletch_tests/self_tests.dart
diff --git a/tests/fletch_tests/self_tests.dart b/tests/fletch_tests/self_tests.dart
deleted file mode 100644
index 4b02958cda6747fa2a63432485d21c811c2f88b8..0000000000000000000000000000000000000000
--- a/tests/fletch_tests/self_tests.dart
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2015, the Dartino 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.md file.
-
-/// Tests of fletch_test_suite.dart.
-library fletch_tests.self_tests;
-
-import 'dart:async' show
- Completer,
- Future;
-
-import 'dart:convert' show
- JSON;
-
-import 'package:expect/expect.dart' show
- Expect;
-
-import 'messages.dart';
-
-import 'fletch_test_suite.dart' as suite show print;
-
-/// Test sleeps for 3 seconds.
-Future testSleepForThreeSeconds() async {
- await new Future.delayed(const Duration(seconds: 3));
-}
-
-/// Always fails.
-Future testAlwaysFails() async {
- throw "This test always fails.";
-}
-
-/// Never completes (should be skipped).
-Future testNeverCompletes() => new Completer().future;
-
-/// Test that messages can be instantiated and printed.
-Future testMessages() async {
- void testMessage(Message message) {
- String json = JSON.encode(message);
- Expect.stringEquals('$message', '${new Message.fromJson(json)}');
- }
-
- testMessage(const InternalErrorMessage("arg1", "arg2"));
- testMessage(const ListTests());
- testMessage(const ListTestsReply(const <String>[]));
- testMessage(const RunTest("arg1"));
- testMessage(const TimedOut("arg1"));
- testMessage(const TestFailed("arg1", "arg2", "arg3"));
- testMessage(const TestPassed("arg1"));
- testMessage(const Info("message"));
- testMessage(const TestStdoutLine("name", "line"));
-}
-
-/// Test print method.
-Future testPrint() async {
- suite.print("Debug print from fletch_tests works.");
-}
« no previous file with comments | « tests/fletch_tests/multiprogram_tests.dart ('k') | tests/fletch_tests/sentence_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698