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

Unified Diff: tests/lib/platform/executable_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: Address all 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/executable_test.dart
diff --git a/tests/language/type_variable_bounds3_test.dart b/tests/lib/platform/executable_test.dart
similarity index 51%
copy from tests/language/type_variable_bounds3_test.dart
copy to tests/lib/platform/executable_test.dart
index 876ed9421e3005474b4693e30f205ebc5270b9a8..fee453938db9d530bab866415a3f2fed579968c3 100644
--- a/tests/language/type_variable_bounds3_test.dart
+++ b/tests/lib/platform/executable_test.dart
@@ -2,18 +2,15 @@
// 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.
-// Test of parameterized types with invalid bounds.
+import "dart:platform" as platform;
-class A<K extends int> {
-}
+import "package:unittest/unittest.dart";
-class B<X, Y> {
- foo(x) {
- return x is A<X>; /// 00: dynamic type error
+main() {
+ if (platform.operatingSystem != null) {
+ expect(platform.executable, contains('dart'));
+ } else {
+ expect(platform.executable, isNull);
}
}
-main() {
- var b = new B<double, double>();
- b.foo(new A());
-}

Powered by Google App Engine
This is Rietveld 408576698