Add manual test for color space rendering behavior (#10000)

* Add manual test for color space rendering behavior

* Remove unneeded assets

* Add test for color demo

* Drag up to scroll down
This commit is contained in:
mattsarett
2017-05-18 13:07:45 -04:00
committed by Ian Hickson
parent bae5a5cdf3
commit 5b5aa25457
2 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// Copyright 2017 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 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import '../lib/color_testing_demo.dart' as color_testing_demo;
void main() {
testWidgets("Color testing demo smoke test", (WidgetTester tester) async {
color_testing_demo.main(); // builds the app and schedules a frame but doesn't trigger one
await tester.pump(); // see https://github.com/flutter/flutter/issues/1865
await tester.pump(); // triggers a frame
await tester.dragFrom(const Offset(0.0, 500.0), const Offset(0.0, 0.0)); // scrolls down
await tester.pump();
await tester.dragFrom(const Offset(0.0, 500.0), const Offset(0.0, 0.0)); // scrolls down
await tester.pump();
});
}