mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Code outside of package:sky should import this code using package:sky/rendering.dart package:sky/widgets.dart Moving this code into the "src" directory is a convention that signifies that and it cleans up the generated dartdoc because the libraries in the src directory aren't included in the generated documentation. Instead, the classes are documented in the widgets.dart and rendering.dart libraries.
31 lines
894 B
Dart
31 lines
894 B
Dart
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'dart:async';
|
|
|
|
import 'package:sky/src/widgets/framework.dart';
|
|
|
|
import '../../../examples/widgets/sector.dart';
|
|
import '../resources/display_list.dart';
|
|
|
|
main() async {
|
|
TestRenderView testRenderView = new TestRenderView();
|
|
SectorApp app = new SectorApp();
|
|
runApp(app, renderViewOverride: testRenderView);
|
|
await testRenderView.checkFrame();
|
|
app.addSector();
|
|
await testRenderView.checkFrame();
|
|
app.addSector();
|
|
await testRenderView.checkFrame();
|
|
app.addSector();
|
|
await testRenderView.checkFrame();
|
|
app.removeSector();
|
|
await testRenderView.checkFrame();
|
|
app.removeSector();
|
|
await testRenderView.checkFrame();
|
|
app.addSector();
|
|
await testRenderView.checkFrame();
|
|
testRenderView.endTest();
|
|
}
|