| OLD | NEW |
| 1 // Copyright (c) 2014, 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 |
| 1 import 'package:observatory/service_io.dart'; | 5 import 'package:observatory/service_io.dart'; |
| 2 import 'test_helper.dart'; | 6 import 'test_helper.dart'; |
| 3 | 7 |
| 4 import 'dart:async'; | 8 import 'dart:async'; |
| 5 | 9 |
| 6 void script() { | 10 void script() { |
| 7 List<int> data; | 11 List<int> data; |
| 8 var grow; | 12 var grow; |
| 9 grow = (int iterations, int size, Duration duration) { | 13 grow = (int iterations, int size, Duration duration) { |
| 10 if (iterations <= 0) { | 14 if (iterations <= 0) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 if (event.eventType == 'GC' && --gcCountdown == 0) { | 30 if (event.eventType == 'GC' && --gcCountdown == 0) { |
| 27 completer.complete(); | 31 completer.complete(); |
| 28 } | 32 } |
| 29 }); | 33 }); |
| 30 return completer.future; | 34 return completer.future; |
| 31 }, | 35 }, |
| 32 | 36 |
| 33 ]; | 37 ]; |
| 34 | 38 |
| 35 main(args) => runIsolateTests(args, tests, testeeConcurrent: script); | 39 main(args) => runIsolateTests(args, tests, testeeConcurrent: script); |
| OLD | NEW |