| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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 library fletchc.test.program_result; | 5 library dartino_compiler.test.program_result; |
| 6 | 6 |
| 7 import 'dart:convert' show | 7 import 'dart:convert' show |
| 8 JSON; | 8 JSON; |
| 9 | 9 |
| 10 import 'source_update.dart'; | 10 import 'source_update.dart'; |
| 11 | 11 |
| 12 class ProgramResult { | 12 class ProgramResult { |
| 13 final /* Map<String, String> or String */ code; | 13 final /* Map<String, String> or String */ code; |
| 14 | 14 |
| 15 final List<String> messages; | 15 final List<String> messages; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } | 241 } |
| 242 return result; | 242 return result; |
| 243 } | 243 } |
| 244 | 244 |
| 245 List<ProgramExpectation> extractJsonExpectations(String source) { | 245 List<ProgramExpectation> extractJsonExpectations(String source) { |
| 246 return new List<ProgramExpectation>.from(source.split("\n") | 246 return new List<ProgramExpectation>.from(source.split("\n") |
| 247 .where((l) => l.startsWith("<<<< ") || l.startsWith("==== ")) | 247 .where((l) => l.startsWith("<<<< ") || l.startsWith("==== ")) |
| 248 .map((l) => l.substring("<<<< ".length)) | 248 .map((l) => l.substring("<<<< ".length)) |
| 249 .map((l) => new ProgramExpectation.fromJson(l))); | 249 .map((l) => new ProgramExpectation.fromJson(l))); |
| 250 } | 250 } |
| OLD | NEW |