From 641bac024dedd2222a8606a04e1a8e54980786b9 Mon Sep 17 00:00:00 2001 From: Victor Lindquist <vicli268@student.liu.se> Date: Mon, 4 Jan 2021 14:01:31 +0100 Subject: [PATCH] Done with SDKs --- lab1/flutter/lab1/test/widget_test.dart | 30 ------------------- lab2/test/widget_test.dart | 30 ------------------- lab3/test/widget_test.dart | 30 ------------------- project/progress_plugin/example/lib/main.dart | 2 +- 4 files changed, 1 insertion(+), 91 deletions(-) delete mode 100644 lab1/flutter/lab1/test/widget_test.dart delete mode 100644 lab2/test/widget_test.dart delete mode 100644 lab3/test/widget_test.dart diff --git a/lab1/flutter/lab1/test/widget_test.dart b/lab1/flutter/lab1/test/widget_test.dart deleted file mode 100644 index d590f4e..0000000 --- a/lab1/flutter/lab1/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:lab1/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} diff --git a/lab2/test/widget_test.dart b/lab2/test/widget_test.dart deleted file mode 100644 index ede2bf5..0000000 --- a/lab2/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:lab2/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} diff --git a/lab3/test/widget_test.dart b/lab3/test/widget_test.dart deleted file mode 100644 index ccae374..0000000 --- a/lab3/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:lab3/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} diff --git a/project/progress_plugin/example/lib/main.dart b/project/progress_plugin/example/lib/main.dart index a716b91..f571e82 100644 --- a/project/progress_plugin/example/lib/main.dart +++ b/project/progress_plugin/example/lib/main.dart @@ -45,7 +45,7 @@ class _MyAppState extends State<MyApp> { ), body: Center( child: ProgressModal( - labelText: Text / ("Loasding..."), + labelText: Text("Loading..."), ), ), ), -- GitLab