Flutter Web Loading Indicator (#81581)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user