testWidgets('TabBar should not throw when animation is disabled in controller',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBar should not throw when animation is disabled in controller',(WidgetTestertester)async{
// Regression test for https://github.com/flutter/flutter/issues/102600
finalList<String>tabs=<String>['A'];
...
...
@@ -1828,7 +1828,7 @@ void main() {
expect(tester.takeException(),isNull);
});
testWidgets('TabBarView skips animation when disabled in controller',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBarView skips animation when disabled in controller',(WidgetTestertester)async{
finalList<String>tabs=<String>['A','B','C'];
finalTabControllertabController=_tabController(
vsync:constTestVSync(),
...
...
@@ -1873,7 +1873,7 @@ void main() {
expect(position.pixels,800);
});
testWidgets('TabBarView skips animation when disabled in controller - skip tabs',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBarView skips animation when disabled in controller - skip tabs',(WidgetTestertester)async{
finalList<String>tabs=<String>['A','B','C'];
finalTabControllertabController=_tabController(
vsync:constTestVSync(),
...
...
@@ -1917,7 +1917,7 @@ void main() {
expect(position.pixels,800);
});
testWidgets('TabBarView skips animation when disabled in controller - skip tabs twice',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBarView skips animation when disabled in controller - skip tabs twice',(WidgetTestertester)async{
// Regression test for https://github.com/flutter/flutter/issues/110970
finalList<String>tabs=<String>['A','B','C'];
finalTabControllertabController=_tabController(
...
...
@@ -1966,7 +1966,7 @@ void main() {
expect(position.pixels,0);
});
testWidgets('TabBarView skips animation when disabled in controller - skip tabs followed by single tab navigation',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBarView skips animation when disabled in controller - skip tabs followed by single tab navigation',(WidgetTestertester)async{
// Regression test for https://github.com/flutter/flutter/issues/110970
finalList<String>tabs=<String>['A','B','C'];
finalTabControllertabController=_tabController(
...
...
@@ -2019,7 +2019,7 @@ void main() {
expect(position.pixels,0);
});
testWidgets('TabBarView skips animation when disabled in controller - two tabs',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBarView skips animation when disabled in controller - two tabs',(WidgetTestertester)async{
finalList<String>tabs=<String>['A','B'];
finalTabControllertabController=_tabController(
vsync:constTestVSync(),
...
...
@@ -2062,7 +2062,7 @@ void main() {
expect(position.pixels,400);
});
testWidgets('TabBar tap animates the selection indicator',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBar tap animates the selection indicator',(WidgetTestertester)async{
// This is a regression test for https://github.com/flutter/flutter/issues/7479
finalList<String>tabs=<String>['A','B'];
...
...
@@ -2097,7 +2097,7 @@ void main() {
expect(indicatorRect2.height,2.0);
});
testWidgets('TabBarView child disposed during animation',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBarView child disposed during animation',(WidgetTestertester)async{
// This is a regression test for this patch:
// https://github.com/flutter/flutter/pull/9015
...
...
@@ -2157,7 +2157,7 @@ void main() {
);
}
testWidgets('TabBarView children can be updated during animation to an adjacent tab',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBarView children can be updated during animation to an adjacent tab',(WidgetTestertester)async{
// Regression test for https://github.com/flutter/flutter/issues/107399
testWidgets('TabBar expands vertically to accommodate the Icon and child Text() pair the same amount it would expand for Icon and text pair.',(WidgetTestertester)async{
testWidgetsWithLeakTracking('TabBar expands vertically to accommodate the Icon and child Text() pair the same amount it would expand for Icon and text pair.',(WidgetTestertester)async{
// There was a time where this would throw an exception
// because we tried to send a notification on dispose.
});
testWidgets("TabController's animation value should be in sync with TabBarView's scroll value when user interrupts ballistic scroll",(WidgetTestertester)async{
testWidgetsWithLeakTracking("TabController's animation value should be in sync with TabBarView's scroll value when user interrupts ballistic scroll",(WidgetTestertester)async{
finalTabControllertabController=_tabController(
vsync:constTestVSync(),
length:3,
...
...
@@ -5211,7 +5209,7 @@ void main() {
awaittester.pumpAndSettle();
});
testWidgets('Does not instantiate intermediate tabs during animation',(WidgetTestertester)async{
testWidgetsWithLeakTracking('Does not instantiate intermediate tabs during animation',(WidgetTestertester)async{
// Regression test for https://github.com/flutter/flutter/issues/14316.
testWidgets('splashBorderRadius is passed to InkWell.borderRadius',(WidgetTestertester)async{
testWidgetsWithLeakTracking('splashBorderRadius is passed to InkWell.borderRadius',(WidgetTestertester)async{
constColorhoverColor=Color(0xfff44336);
constdoubleradius=20;
awaittester.pumpWidget(
...
...
@@ -5870,7 +5868,7 @@ void main() {
gesture.removePointer();
});
testWidgets('Do not crash if the controller and TabBarView are updated at different phases(build and layout) of the same frame',(WidgetTestertester)async{
testWidgetsWithLeakTracking('Do not crash if the controller and TabBarView are updated at different phases(build and layout) of the same frame',(WidgetTestertester)async{
// Regression test for https://github.com/flutter/flutter/issues/104994.
List<String>tabTextContent=<String>[];
...
...
@@ -5946,7 +5944,7 @@ void main() {
expect(find.text('No tabs'),findsOneWidget);
});
testWidgets("Throw if the controller's length mismatch the tabs count",(WidgetTestertester)async{
testWidgetsWithLeakTracking("Throw if the controller's length mismatch the tabs count",(WidgetTestertester)async{
awaittester.pumpWidget(
MaterialApp(
home:DefaultTabController(
...
...
@@ -5967,7 +5965,7 @@ void main() {
expect(tester.takeException(),isAssertionError);
});
testWidgets("Throw if the controller's length mismatch the TabBarView‘s children count",(WidgetTestertester)async{
testWidgetsWithLeakTracking("Throw if the controller's length mismatch the TabBarView‘s children count",(WidgetTestertester)async{
awaittester.pumpWidget(
MaterialApp(
home:DefaultTabController(
...
...
@@ -5995,7 +5993,7 @@ void main() {
expect(tester.takeException(),isAssertionError);
});
testWidgets('Tab has correct selected/unselected hover color',(WidgetTestertester)async{
testWidgetsWithLeakTracking('Tab has correct selected/unselected hover color',(WidgetTestertester)async{