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

Unified Diff: tests/lib/platform/number_of_processors_test.dart

Issue 36883005: Add fields to platform library, implement them on runtime dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comments. Created 7 years, 2 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/lib/platform/number_of_processors_test.dart
diff --git a/tests/language/bootstrap_test.dart b/tests/lib/platform/number_of_processors_test.dart
similarity index 50%
copy from tests/language/bootstrap_test.dart
copy to tests/lib/platform/number_of_processors_test.dart
index 747dbf9e4bae1ff32d8597a228719fbe31a73d7c..043914d4c75cd7f5c7a5537b32565434a7fbbf0d 100644
--- a/tests/language/bootstrap_test.dart
+++ b/tests/lib/platform/number_of_processors_test.dart
@@ -1,19 +1,15 @@
// Copyright (c) 2013, 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.
-// Dart test for testing binary operations.
-// VMOptions=--verify_implements --check-function-fingerprints
-class BootstrapTest {
+import "dart:platform" as platform;
- static testMain() {
- var obj = new Object();
-
- return obj;
- }
-
-}
+import "package:unittest/unittest.dart";
main() {
- BootstrapTest.testMain();
+ if (platform.operatingSystem != null) {
+ expect(platform.numberOfProcessors, isPositive);
+ } else {
+ expect(platform.numberOfProcessors, isNull);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698