Index: tests/language/private_library_negative_test.dart |
diff --git a/tests/compiler/dart2js_extra/regress/4515_3_test.dart b/tests/language/private_library_negative_test.dart |
similarity index 56% |
copy from tests/compiler/dart2js_extra/regress/4515_3_test.dart |
copy to tests/language/private_library_negative_test.dart |
index 319eb0cac719a777093aa372c3e2f0e27b396612..f52189c06639a882b64b02bd3bb4f2c63e5f7db1 100644 |
--- a/tests/compiler/dart2js_extra/regress/4515_3_test.dart |
+++ b/tests/language/private_library_negative_test.dart |
@@ -2,19 +2,11 @@ |
// 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. |
-class A { |
- a(x) => x + 1; |
-} |
+// Test that a private library cannot be accessed from outside the platform. |
-f(p) => p("A"); |
+import 'dart:core'; |
+import 'dart:_foreign_helper'; |
ngeoffray
2013/01/16 15:40:57
Make this a multi test with a compile-time error?
ahe
2013/01/18 11:03:10
+1
Johnni Winther
2013/01/21 09:27:54
Done.
|
-main() { |
- A a = new A(); |
- a.a(1); |
- var v = null; |
- try { |
- v = f(a.a); |
- } catch (e) { } |
- |
- Expect.equals(null, v); |
-} |
+void main() { |
+ JS('int', '0'); |
+} |