Fix URL construction in the test entry point generated by the web bootstrap script (#88201)

This commit is contained in:
Jason Simmons
2021-08-16 14:12:05 -07:00
committed by GitHub
parent e761e64983
commit ddb8bfb72b
2 changed files with 12 additions and 1 deletions

View File

@@ -102,4 +102,15 @@ test('generateBootstrapScript includes loading indicator', () {
expect(result, contains('test_config.testExecutable'));
});
test('generateTestEntrypoint embeds urls correctly', () {
final String result = generateTestEntrypoint(
relativeTestPath: 'relative_path.dart',
absolutePath: '/test/absolute_path.dart',
testConfigPath: null,
languageVersion: LanguageVersion(2, 8),
);
expect(result, contains("Uri.parse('file:///test/absolute_path.dart')"));
});
}