| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 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 | 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 /// Integration test that runs the incremental compiler, runs the compiled | 5 /// Integration test that runs the incremental compiler, runs the compiled |
| 6 /// program, incrementally rebuild portions of the app, and triggers a hot | 6 /// program, incrementally rebuild portions of the app, and triggers a hot |
| 7 /// reload on the running program. | 7 /// reload on the running program. |
| 8 library front_end.incremental.hot_reload_e2e_test; | 8 library front_end.incremental.hot_reload_e2e_test; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| 11 import 'dart:convert'; | 11 import 'dart:convert'; |
| 12 import 'dart:io'; | 12 import 'dart:io'; |
| 13 | 13 |
| 14 import 'package:front_end/compiler_options.dart'; | 14 import 'package:front_end/compiler_options.dart'; |
| 15 import 'package:front_end/file_system.dart'; | 15 import 'package:front_end/file_system.dart'; |
| 16 import 'package:front_end/incremental_kernel_generator.dart'; | 16 import 'package:front_end/incremental_kernel_generator.dart'; |
| 17 import 'package:front_end/memory_file_system.dart'; | 17 import 'package:front_end/memory_file_system.dart'; |
| 18 import 'package:front_end/src/incremental/byte_store.dart'; | 18 import 'package:front_end/src/byte_store/byte_store.dart'; |
| 19 import 'package:front_end/src/testing/hybrid_file_system.dart'; | 19 import 'package:front_end/src/testing/hybrid_file_system.dart'; |
| 20 import 'package:kernel/ast.dart'; | 20 import 'package:kernel/ast.dart'; |
| 21 import 'package:kernel/binary/limited_ast_to_binary.dart'; | 21 import 'package:kernel/binary/limited_ast_to_binary.dart'; |
| 22 import 'package:test/test.dart'; | 22 import 'package:test/test.dart'; |
| 23 | 23 |
| 24 import '../../../tool/vm/reload.dart'; | 24 import '../../../tool/vm/reload.dart'; |
| 25 | 25 |
| 26 main() { | 26 main() { |
| 27 IncrementalKernelGenerator compiler; | 27 IncrementalKernelGenerator compiler; |
| 28 MemoryFileSystem fs; | 28 MemoryFileSystem fs; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 f() => "$line part2"; | 240 f() => "$line part2"; |
| 241 '''; | 241 '''; |
| 242 | 242 |
| 243 const sourceB = r''' | 243 const sourceB = r''' |
| 244 get line => "part1"; | 244 get line => "part1"; |
| 245 '''; | 245 '''; |
| 246 | 246 |
| 247 RegExp observatoryPortRegExp = | 247 RegExp observatoryPortRegExp = |
| 248 new RegExp("Observatory listening on http://127.0.0.1:\([0-9]*\)/"); | 248 new RegExp("Observatory listening on http://127.0.0.1:\([0-9]*\)/"); |
| OLD | NEW |