Fix dependency skew. (#3306)
...by adding tests to our examples that don't import flutter_test, which pins the relevant dependencies. Also, provide more information when complaining about leaked transient callbacks in tests. Also, make tests display full information when they have an exception, by bypassing the throttling we have for Android logging in tests. Also, make the word wrapping not wrap stack traces if they happen to be included in exception output. Also, fix a leaked transient callback in the checkbox code.
This commit is contained in:
@@ -2,3 +2,7 @@ name: flutter_examples_layers
|
||||
dependencies:
|
||||
flutter:
|
||||
path: ../../packages/flutter
|
||||
dev_dependencies:
|
||||
test: any # flutter_test provides the version constraints
|
||||
flutter_test:
|
||||
path: ../../packages/flutter_test
|
||||
|
||||
12
examples/layers/test/sector_test.dart
Normal file
12
examples/layers/test/sector_test.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// 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 '../rendering/src/sector_layout.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
test('SectorConstraints', () {
|
||||
expect(const SectorConstraints().isTight, isFalse);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user