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

Unified Diff: tests/compiler/dart2js_extra/argument_definition_test.dart

Issue 17825002: Remove support for 'argument definitions test' from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove SentinelConstant. Created 7 years, 6 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 | « tests/co19/co19-dart2js.status ('k') | tests/corelib/corelib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/argument_definition_test.dart
diff --git a/tests/compiler/dart2js_extra/argument_definition_test.dart b/tests/compiler/dart2js_extra/argument_definition_test.dart
deleted file mode 100644
index d5243c57b828ead2333a80583177a29ceddc48e4..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js_extra/argument_definition_test.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012, 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 parsing and resolution of argument definition test.
-
-int test(int a, {int b: 2, int c: 3}) {
- int result = 0;
- print(?b);
- print(?result); /// 01: compile-time error
- print(?a);
- print(?b);
- print(?c);
- {
- var b;
- ?b; /// 02: compile-time error
- }
- print((!?a?!?b:!?c) == (?a??b:?c));
- print(!?a?!?b:!?c == ?a??b:?c);
-}
-
-closure_test(int a, {int b: 2, int c: 3}) {
- var x = 0;
- return () {
- int result = 0;
- print(?b);
- print(?result); /// 03: compile-time error
- print(?x); /// 04: compile-time error
- print(?a);
- print(?b);
- print(?c);
- {
- var b;
- ?b; /// 05: compile-time error
- }
- print((!?a?!?b:!?c) == (?a??b:?c));
- print(!?a?!?b:!?c == ?a??b:?c);
- };
-}
-
-main() {
- test(1);
- test(1, b: 2);
- test(1, b: 2, c: 3);
- test(1, c: 3);
-
- closure_test(1)();
- closure_test(1, b: 2)();
- closure_test(1, b: 2, c: 3)();
- closure_test(1, c: 3)();
-}
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/corelib/corelib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698