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

Unified Diff: samples/github/lib/src/tests/github_api_test.dart

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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 | « samples/github/lib/src/tests/commit_list_test_disabled.dart ('k') | samples/samples.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/github/lib/src/tests/github_api_test.dart
diff --git a/samples/github/lib/src/tests/github_api_test.dart b/samples/github/lib/src/tests/github_api_test.dart
deleted file mode 100644
index c53f65db8d3186965ba5ca716cd8900892f65218..0000000000000000000000000000000000000000
--- a/samples/github/lib/src/tests/github_api_test.dart
+++ /dev/null
@@ -1,44 +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.
-
-import 'package:expect/expect.dart';
-
-import '../github_services.dart';
-import '../github_mock.dart';
-
-void main() {
- var mock = new GithubMock()..verbose = true..spawn();
- var server = new Server(mock.host, mock.port);
- testError(server);
- testUser(server);
- testRepository(server);
- testCommits(server);
- server.close();
- mock.close();
-}
-
-void testUser(Server server) {
- var user = server.getUser('dartino');
- Expect.stringEquals('dartino', user['login']);
-}
-
-void testRepository(Server server) {
- var user = server.getUser('dartino');
- var repo = user.getRepository('sdk');
- Expect.stringEquals('dartino/sdk', repo['full_name']);
-}
-
-void testError(Server server) {
- var user = server.getUser('dartino-no-such-user');
- Expect.throws(() { user['login']; });
-}
-
-void testCommits(Server server) {
- var user = server.getUser('dartino');
- var repo = user.getRepository('sdk');
- var commit = repo.getCommitAt(0);
- Expect.stringEquals('Martin Kustermann', commit['commit']['author']['name']);
- commit = repo.getCommitAt(60);
- Expect.stringEquals('Søren Gjesse', commit['commit']['author']['name']);
-}
« no previous file with comments | « samples/github/lib/src/tests/commit_list_test_disabled.dart ('k') | samples/samples.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698