Remove our extra timeout logic. (#89952)
This commit is contained in:
@@ -491,7 +491,6 @@ void main() {
|
||||
final String themeName = themeNames[themeIndex];
|
||||
|
||||
testWidgets('backdrop_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const BackdropDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -499,7 +498,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('bottom_app_bar_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const BottomAppBarDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -507,7 +505,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('bottom_navigation_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const BottomNavigationDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -515,7 +512,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('buttons_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ButtonsDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -523,7 +519,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('cards_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const CardsDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -531,7 +526,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('chip_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ChipDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -539,7 +533,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('data_table_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const DataTableDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -547,7 +540,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('date_and_time_picker_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const DateAndTimePickerDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -555,7 +547,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('dialog_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const DialogDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -563,7 +554,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('drawer_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const DrawerDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -571,7 +561,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('elevation_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ElevationDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -579,7 +568,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('expansion_panels_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ExpansionPanelsDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -587,7 +575,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('grid_list_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const GridListDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -595,7 +582,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('icons_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const IconsDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -603,7 +589,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('leave_behind_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const LeaveBehindDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -611,7 +596,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('list_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ListDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -619,7 +603,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('menu_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const MenuDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -627,7 +610,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('modal_bottom_sheet_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(theme: theme, home: const ModalBottomSheetDemo())
|
||||
@@ -637,7 +619,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('overscroll_demo', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(const MaterialApp(home: OverscrollDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -645,7 +626,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('page_selector_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const PageSelectorDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -653,7 +633,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('persistent_bottom_sheet_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(theme: theme, home: const PersistentBottomSheetDemo())
|
||||
@@ -663,7 +642,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('progress_indicator_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ProgressIndicatorDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -671,7 +649,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('reorderable_list_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ReorderableListDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -679,7 +656,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('scrollable_tabs_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ScrollableTabsDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -687,7 +663,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('search_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const SearchDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -695,7 +670,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('selection_controls_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const SelectionControlsDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -703,7 +677,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('slider_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const SliderDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -711,7 +684,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('snack_bar_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(theme: theme, home: const SnackBarDemo())
|
||||
@@ -721,7 +693,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('tabs_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const TabsDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -729,7 +700,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('tabs_fab_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const TabsFabDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -737,7 +707,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('text_form_field_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const TextFormFieldDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -745,7 +714,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('tooltip_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const TooltipDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
@@ -753,7 +721,6 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('expansion_tile_list_demo $themeName', (WidgetTester tester) async {
|
||||
tester.binding.addTime(const Duration(seconds: 3));
|
||||
final SemanticsHandle handle = tester.ensureSemantics();
|
||||
await tester.pumpWidget(MaterialApp(theme: theme, home: const ExpansionTileListDemo()));
|
||||
await expectLater(tester, meetsGuideline(textContrastGuideline));
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
#include "generated_plugin_registrant.h"
|
||||
|
||||
#include <url_launcher_windows/url_launcher_plugin.h>
|
||||
#include <url_launcher_windows/url_launcher_windows.h>
|
||||
|
||||
void RegisterPlugins(flutter::PluginRegistry* registry) {
|
||||
UrlLauncherPluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("UrlLauncherPlugin"));
|
||||
UrlLauncherWindowsRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user