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

Unified Diff: tests/language_strong/async_continue_label_test.dart

Issue 2985173002: Migrate language/async_backwards... ... language/async_star_take... (Closed)
Patch Set: Update tests to Dart 2.0. Created 3 years, 5 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
Index: tests/language_strong/async_continue_label_test.dart
diff --git a/tests/language_strong/async_continue_label_test.dart b/tests/language_strong/async_continue_label_test.dart
deleted file mode 100644
index c33fa532eb8d6580ad017d9f04ce14b321f36c62..0000000000000000000000000000000000000000
--- a/tests/language_strong/async_continue_label_test.dart
+++ /dev/null
@@ -1,116 +0,0 @@
-// Copyright (c) 2015, 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.
-
-import "package:expect/expect.dart";
-import "package:async_helper/async_helper.dart";
-
-// Two loop variables
-test1() async {
- var r = 0;
- label:
- for (var i = 1,
- j =
- await //# await_in_init: ok
- 10;
- i < 10 &&
- j >
- await //# await_in_condition: ok
- -5;
- j--,
- i +=
- await //# await_in_update: ok
- 1) {
- if (i <
- await //# await_in_body: ok
- 5 ||
- j < -5) {
- continue label;
- }
- r++;
- }
- Expect.equals(5, r);
-}
-
-// One loop variable
-test2() async {
- var r = 0;
- label:
- for (var i =
- await //# await_in_init: ok
- 0;
- i <
- await //# await_in_condition: ok
- 10;
- i +=
- await //# await_in_update: ok
- 1) {
- if (i <
- await //# await_in_body: ok
- 5) {
- continue label;
- }
- r++;
- }
- Expect.equals(5, r);
-}
-
-// Variable not declared in initializer;
-test3() async {
- var r = 0, i, j;
- label:
- for (i =
- await //# await_in_init: ok
- 0;
- i <
- await //# await_in_condition: ok
- 10;
- i +=
- await //# await_in_update: ok
- 1) {
- if (i <
- await //# await_in_body: ok
- 5) {
- continue label;
- }
- r++;
- }
- Expect.equals(5, r);
-}
-
-// Nested loop
-test4() async {
- var r = 0;
- label:
- for (var i =
- await //# await_in_init: ok
- 0;
- i <
- await //# await_in_condition: ok
- 10;
- i +=
- await //# await_in_update: ok
- 1) {
- if (i <
- await //# await_in_body: ok
- 5) {
- for (int i = 0; i < 10; i++) {
- continue label;
- }
- }
- r++;
- }
- Expect.equals(5, r);
-}
-
-test() async {
- await test1();
- await test2();
- await test3();
- await test4();
-}
-
-main() {
- asyncStart();
- test().then((_) => asyncEnd());
-}
« no previous file with comments | « tests/language_strong/async_cascade_test.dart ('k') | tests/language_strong/async_control_structures_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698