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/corelib/hidden_library_test.dart

Issue 11938036: Hide collection-dev library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disallow importing dart:_collection_dev in dart2js. Created 7 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
Index: tests/corelib/hidden_library_test.dart
diff --git a/tests/compiler/dart2js_extra/regress/4515_3_test.dart b/tests/corelib/hidden_library_test.dart
similarity index 58%
copy from tests/compiler/dart2js_extra/regress/4515_3_test.dart
copy to tests/corelib/hidden_library_test.dart
index 319eb0cac719a777093aa372c3e2f0e27b396612..4e7dec06a8caaaa341ea0df76199463fd1fb6394 100644
--- a/tests/compiler/dart2js_extra/regress/4515_3_test.dart
+++ b/tests/corelib/hidden_library_test.dart
@@ -1,20 +1,10 @@
// 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.
+// Test that we can't import the internal hidden library "dart:_collection-dev".
-class A {
- a(x) => x + 1;
-}
-
-f(p) => p("A");
+import "dart:_collection_dev"; /// 01: compile-time error
main() {
- A a = new A();
- a.a(1);
- var v = null;
- try {
- v = f(a.a);
- } catch (e) { }
-
- Expect.equals(null, v);
+ var x = new Map();
}

Powered by Google App Engine
This is Rietveld 408576698