Index: test/codegen/corelib/uri_base_test.dart |
diff --git a/test/codegen/language/closure4_test.dart b/test/codegen/corelib/uri_base_test.dart |
similarity index 54% |
copy from test/codegen/language/closure4_test.dart |
copy to test/codegen/corelib/uri_base_test.dart |
index a1b099673ab76d7f0c1c52303efc29932cc63061..0954aabeeed9b373a164d69b7673d8e529a7600d 100644 |
--- a/test/codegen/language/closure4_test.dart |
+++ b/test/codegen/corelib/uri_base_test.dart |
@@ -4,17 +4,12 @@ |
import "package:expect/expect.dart"; |
-// Dart2js failed when a declared function was captured inside itself. |
- |
-foo(f) => f(499); |
- |
main() { |
- fun(x) { |
- if (x < 3) { |
- return foo((x) => fun(x)); |
- } else { |
- return x; |
- } |
+ try { |
+ Uri base = Uri.base; |
+ Expect.isTrue(Uri.base.scheme == "file" || Uri.base.scheme == "http"); |
+ } on UnsupportedError catch (e) { |
+ Expect.isTrue( |
+ e.toString().contains("'Uri.base' is not supported")); |
} |
- Expect.equals(499, fun(499)); |
} |