| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Dart test program testing code GC. | 5 // Dart test program testing code GC. |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 import "dart:async"; | 8 import "dart:async"; |
| 9 import "dart:io"; | 9 import "dart:io"; |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // message that foo's code was dropped. | 59 // message that foo's code was dropped. |
| 60 var found = false; | 60 var found = false; |
| 61 pr.stdout.split("\n").forEach((line) { | 61 pr.stdout.split("\n").forEach((line) { |
| 62 if (line.contains("Detaching code") && line.contains("foo")) { | 62 if (line.contains("Detaching code") && line.contains("foo")) { |
| 63 found = true; | 63 found = true; |
| 64 } | 64 } |
| 65 }); | 65 }); |
| 66 Expect.isTrue(found); | 66 Expect.isTrue(found); |
| 67 } | 67 } |
| 68 } | 68 } |
| OLD | NEW |