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

Unified Diff: test/codegen/corelib/uri_base_test.dart

Issue 1945153002: Add corelib tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: error_test and range_error_test now pass Created 4 years, 7 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
« no previous file with comments | « test/codegen/corelib/unicode_test.dart ('k') | test/codegen/corelib/uri_file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « test/codegen/corelib/unicode_test.dart ('k') | test/codegen/corelib/uri_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698