Commit 9c0c0225 authored by Adam Barth's avatar Adam Barth Committed by GitHub

Add a test for GridPaper (#4754)

Previously this widget was completely untested.
parent 0a4f96e2
// 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 'package:flutter_test/flutter_test.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
void main() {
testWidgets('GridPaper control test', (WidgetTester tester) async {
await tester.pumpWidget(new GridPaper());
List<Layer> layers1 = tester.layers;
await tester.pumpWidget(new GridPaper());
List<Layer> layers2 = tester.layers;
expect(layers1, equals(layers2));
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment