| OLD | NEW | 
| (Empty) |  | 
 |   1 // Copyright (c) 2017, the Dart project authors.  Please see the AUTHORS file | 
 |   2 // for details. All rights reserved. Use of this source code is governed by a | 
 |   3 // BSD-style license that can be found in the LICENSE file. | 
 |   4  | 
 |   5 import 'test_helper.dart'; | 
 |   6 import 'service_test_common.dart'; | 
 |   7  | 
 |   8 const int LINE = 11; | 
 |   9 const String file = "step_through_switch_with_continue_test.dart"; | 
 |  10  | 
 |  11 code() { | 
 |  12   switch (switchOnMe.length) { | 
 |  13     case 0: | 
 |  14       print("(got 0!"); | 
 |  15       continue label; | 
 |  16     label: | 
 |  17     case 1: | 
 |  18       print("Got 0 or 1!"); | 
 |  19       break; | 
 |  20     case 2: | 
 |  21       print("Got 2!"); | 
 |  22       break; | 
 |  23     default: | 
 |  24       print("Got lost!"); | 
 |  25   } | 
 |  26 } | 
 |  27  | 
 |  28 List<String> switchOnMe = []; | 
 |  29 List<String> stops = []; | 
 |  30 List<String> expected = [ | 
 |  31   "$file:${LINE+0}:5", // after 'code' | 
 |  32  | 
 |  33   "$file:${LINE+1}:11", // on switchOnMe | 
 |  34   "$file:${LINE+1}:22", // on length | 
 |  35  | 
 |  36   "$file:${LINE+2}:10", // on 0 | 
 |  37   "$file:${LINE+3}:7", // on print | 
 |  38   "$file:${LINE+4}:7", // on continue | 
 |  39  | 
 |  40   "$file:${LINE+7}:7", // on print | 
 |  41   "$file:${LINE+8}:7", // on break | 
 |  42  | 
 |  43   "$file:${LINE+15}:1" // on ending '}' | 
 |  44 ]; | 
 |  45  | 
 |  46 var tests = [ | 
 |  47   hasPausedAtStart, | 
 |  48   setBreakpointAtLine(LINE), | 
 |  49   runStepIntoThroughProgramRecordingStops(stops), | 
 |  50   checkRecordedStops(stops, expected, | 
 |  51       debugPrint: true, debugPrintFile: file, debugPrintLine: LINE) | 
 |  52 ]; | 
 |  53  | 
 |  54 main(args) { | 
 |  55   runIsolateTestsSynchronous(args, tests, | 
 |  56       testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); | 
 |  57 } | 
| OLD | NEW |