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

Unified Diff: dart/tests/try/web/incremental_compilation_update_test.dart

Issue 740273003: Incremental compiler: support optional arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add TODO for a follow-up CL. Created 6 years, 1 month 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: dart/tests/try/web/incremental_compilation_update_test.dart
diff --git a/dart/tests/try/web/incremental_compilation_update_test.dart b/dart/tests/try/web/incremental_compilation_update_test.dart
index 6c033386559824acf893b637319051faf01d2fb4..f5443eceed5f84765fd0e605a877c9b8bc3e201e 100644
--- a/dart/tests/try/web/incremental_compilation_update_test.dart
+++ b/dart/tests/try/web/incremental_compilation_update_test.dart
@@ -1083,7 +1083,6 @@ main() {
],
// Test that named arguments can be called.
- // TODO(ahe): This test doesn't pass yet, see expectation below.
const <ProgramResult>[
const ProgramResult(
r"""
@@ -1100,12 +1099,7 @@ main() {
print('instance is null');
instance = new C();
}
- try {
- instance.foo();
- } catch (e) {
- // TODO(ahe): This try/catch shouldn't be necessary.
- print('threw');
- }
+ instance.foo();
}
""",
const <String>['instance is null', 'v1']),
@@ -1124,19 +1118,13 @@ main() {
print('instance is null');
instance = new C();
}
- try {
- instance.foo(named: 'v2');
- } catch (e) {
- // TODO(ahe): This try/catch shouldn't be necessary.
- print('threw');
- }
+ instance.foo(named: 'v2');
}
""",
- const <String>['threw']), // TODO(ahe): Expect 'v2'.
+ const <String>['v2']),
],
// Test than named arguments can be called.
- // TODO(ahe): This test doesn't pass yet, see expectation below.
const <ProgramResult>[
const ProgramResult(
r"""
@@ -1153,12 +1141,7 @@ main() {
print('instance is null');
instance = new C();
}
- try {
- instance.foo(named: 'v1');
- } catch (e) {
- // TODO(ahe): This try/catch shouldn't be necessary.
- print('threw');
- }
+ instance.foo(named: 'v1');
}
""",
const <String>['instance is null', 'v1']),
@@ -1177,19 +1160,13 @@ main() {
print('instance is null');
instance = new C();
}
- try {
- instance.foo();
- } catch (e) {
- // TODO(ahe): This try/catch shouldn't be necessary.
- print('threw');
- }
+ instance.foo();
}
""",
- const <String>['threw']),
+ const <String>['v2']),
],
// Test that an instance tear-off with named parameters can be called.
- // TODO(ahe): This test doesn't pass yet, see expectation below.
const <ProgramResult>[
const ProgramResult(
r"""
@@ -1206,12 +1183,7 @@ main() {
print('closure is null');
closure = new C().foo;
}
- try {
- closure();
- } catch (e) {
- // TODO(ahe): This try/catch shouldn't be necessary.
- print('threw');
- }
+ closure();
}
""",
const <String>['closure is null', 'v1']),
@@ -1230,15 +1202,10 @@ main() {
print('closure is null');
closure = new C().foo;
}
- try {
- closure(named: 'v2');
- } catch (e) {
- // TODO(ahe): This try/catch shouldn't be necessary.
- print('threw');
- }
+ closure(named: 'v2');
}
""",
- const <String>['threw']), // TODO(ahe): Expect 'v2'.
+ const <String>['v2']),
],
/*

Powered by Google App Engine
This is Rietveld 408576698