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

Unified Diff: runtime/observatory/test/type_arguments_test.dart

Issue 1071363002: Relocate service library tests and hookup a working status file (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « runtime/observatory/test/test_helper.dart ('k') | runtime/observatory/test/vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/test/type_arguments_test.dart
diff --git a/runtime/observatory/test/type_arguments_test.dart b/runtime/observatory/test/type_arguments_test.dart
deleted file mode 100644
index aaa85c75cfe0454253d2465f7cd227e8449d1dcb..0000000000000000000000000000000000000000
--- a/runtime/observatory/test/type_arguments_test.dart
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2015, 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=--compile-all --error_on_bad_type --error_on_bad_override --checked
-
-import 'package:observatory/service_io.dart';
-import 'package:unittest/unittest.dart';
-import 'test_helper.dart';
-
-var tests = [
-(Isolate isolate) =>
- isolate.getTypeArgumentsList(false).then((ServiceMap allTypeArgs) {
- var allTypeArgsTableSize = allTypeArgs['canonicalTypeArgumentsTableSize'];
- var allTypeArgsTableUsed = allTypeArgs['canonicalTypeArgumentsTableUsed'];
- var allTypeArgsList = allTypeArgs['typeArguments'];
- expect(allTypeArgsList, isNotNull);
- // Check size >= used.
- expect(allTypeArgsTableSize, greaterThanOrEqualTo(allTypeArgsTableUsed));
- return isolate.getTypeArgumentsList(true).then((ServiceMap instantiatedTypeARgs) {
- var instantiatedTypeArgsTableSize =
- instantiatedTypeARgs['canonicalTypeArgumentsTableSize'];
- var instantiatedTypeArgsTableUsed =
- instantiatedTypeARgs['canonicalTypeArgumentsTableUsed'];
- // Check size >= used.
- expect(instantiatedTypeArgsTableSize,
- greaterThanOrEqualTo(instantiatedTypeArgsTableUsed));
- // Check that |instantiated| <= |all|
- var instantiatedTypeArgsList = instantiatedTypeARgs['typeArguments'];
- expect(instantiatedTypeArgsList, isNotNull);
- expect(allTypeArgsList.length,
- greaterThanOrEqualTo(instantiatedTypeArgsList.length));
- // Check that we can 'get' this object again.
- var firstType = allTypeArgsList[0];
- return isolate.getObject(firstType['id']).then((ServiceMap map) {
- expect(firstType['name'], map['name']);
- });
- });
- }),
-];
-
-main(args) => runIsolateTests(args, tests);
« no previous file with comments | « runtime/observatory/test/test_helper.dart ('k') | runtime/observatory/test/vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698