Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
[frontend-server] Fix frontend-server test on Windows.
Browse files Browse the repository at this point in the history
Change-Id: Ib659b28555f2be0f05decdc7be41c6982e2d4804
Reviewed-on: https://dart-review.googlesource.com/70023
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
  • Loading branch information
aam authored and commit-bot@chromium.org committed Aug 14, 2018
1 parent 4b704f2 commit 2c7e6df
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pkg/vm/test/frontend_server_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ Future<int> main() async {
'--sdk-root=${sdkRoot.toFilePath()}',
'--strong',
'--incremental',
'--platform=${platformKernel.path}',
'--platform=$platformKernel',
'--output-dill=${dillFile.path}',
'--output-incremental-dill=${incrementalDillFile.path}'
];
Expand Down Expand Up @@ -875,7 +875,8 @@ Future<int> main() async {
}

// Include platform and verify.
component = loadComponentFromBinary(platformKernel.path, component);
component =
loadComponentFromBinary(platformKernel.toFilePath(), component);
expect(component.mainMethod, isNotNull);
verifyComponent(component);

Expand All @@ -900,7 +901,8 @@ Future<int> main() async {
reason: "Expect the same number of sources after a reset.");

// Include platform and verify.
component = loadComponentFromBinary(platformKernel.path, component);
component =
loadComponentFromBinary(platformKernel.toFilePath(), component);
expect(component.mainMethod, isNotNull);
verifyComponent(component);

Expand All @@ -925,10 +927,11 @@ Future<int> main() async {

// Reload with 1 change
inputStreamController.add('accept\n'.codeUnits);
inputStreamController.add('recompile ${dart2js.path} x$count\n'
'${dart2jsOtherFile.path}\n'
'x$count\n'
.codeUnits);
inputStreamController
.add('recompile ${dart2jsOtherFile.path} x$count\n'
'${dart2jsOtherFile.uri}\n'
'x$count\n'
.codeUnits);
} else if (count == 3) {
// Partial file. Expect to not be empty.
expect(incrementalDillFile.existsSync(), equals(true));
Expand Down

0 comments on commit 2c7e6df

Please sign in to comment.