Skip to content

Commit

Permalink
Clean up (apache#25136)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyinkin committed Feb 21, 2023
1 parent 4881773 commit 3a339c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,13 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:playground_components_dev/playground_components_dev.dart';

Future<void> checkToggleBrightnessMode(WidgetTester wt) async {
Brightness getBrightness() {
return Theme.of(wt.element(find.toggleThemeButton())).brightness;
}

Future<void> toggleTheme() async {
await wt.tap(find.toggleThemeButton());
await wt.pumpAndSettle();
}

final startBrightness = getBrightness();
final startBrightness = wt.getBrightness();
final invertedBrightness =
startBrightness == Brightness.light ? Brightness.dark : Brightness.light;

await toggleTheme();
expect(getBrightness(), invertedBrightness);
await toggleTheme();
expect(getBrightness(), startBrightness);
await wt.toggleTheme();
expect(wt.getBrightness(), invertedBrightness);

await wt.toggleTheme();
expect(wt.getBrightness(), startBrightness);
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
* limitations under the License.
*/

enum OutputType {
all,
log,
output,
}

class Outputs {
final String output;
final String graph;
Expand Down

0 comments on commit 3a339c1

Please sign in to comment.