mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
new Image() is likely to cause the image to try and load as soon as the underlying Image element is inserted into the real DOM. This at least points it at a real image so that it won't dump 404 response text into the test output if the image load kicks off before the test completes. Example: http://build.chromium.org/p/client.mojo/builders/Mojo%20Linux%20NaCl/builds/1130/steps/Sky%20tests/logs/stdio R=ianh@google.com, ojan@chromium.org Review URL: https://codereview.chromium.org/1065073002
17 lines
348 B
Dart
17 lines
348 B
Dart
import 'dart:sky';
|
|
|
|
import 'package:sky/framework/fn.dart';
|
|
|
|
class TestApp extends App {
|
|
UINode build() {
|
|
return new Container(
|
|
inlineStyle: 'background-color: green',
|
|
children: [
|
|
new Text('I am Text'),
|
|
new Image(src: 'resources/united.jpg'),
|
|
new Anchor(href: 'http://www.google.com')
|
|
]
|
|
);
|
|
}
|
|
}
|