Flutter Web Loading Indicator (#81581)

This commit is contained in:
Gary Roumanis
2021-04-30 21:04:02 -07:00
committed by GitHub
parent daaefc306b
commit 0cb0767bd7
2 changed files with 49 additions and 0 deletions

View File

@@ -21,6 +21,14 @@ void main() {
expect(result, contains('requireEl.setAttribute("data-main", "main_module.bootstrap");'));
});
test('generateBootstrapScript includes loading indicator', () {
final String result = generateBootstrapScript(
requireUrl: 'require.js',
mapperUrl: 'mapper.js',
);
expect(result, contains('"flutter-loader"'));
});
test('generateMainModule embeds urls correctly', () {
final String result = generateMainModule(
entrypoint: 'foo/bar/main.js',