Revert "[Ermine] Added unit tests for weather quickui service"
This reverts commit bcf32edf339428f825954db2e3e4453904c7f09c.
Reason for revert: fxb/41681
Original change's description:
> [Ermine] Added unit tests for weather quickui service
>
> Test: run 'fx run-host-tests ermine_settings_unittests'
> Progress: fxb/39966
>
> Change-Id: Iec0340eb01d75080237e81b68d1bdda630ff7551
TBR=sanjayc@google.com,yhlee@google.com,cwhitten@google.com
Change-Id: I2e9dd76a79bdc7374e42f3d9e7af65ed56f7757c
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
diff --git a/session_shells/ermine/settings/BUILD.gn b/session_shells/ermine/settings/BUILD.gn
index a091052..c36d520 100644
--- a/session_shells/ermine/settings/BUILD.gn
+++ b/session_shells/ermine/settings/BUILD.gn
@@ -42,7 +42,6 @@
"memory_test.dart",
"timezone_test.dart",
"volume_test.dart",
- "weather_test.dart",
]
deps = [
diff --git a/session_shells/ermine/settings/test/weather_test.dart b/session_shells/ermine/settings/test/weather_test.dart
deleted file mode 100644
index b21b09b..0000000
--- a/session_shells/ermine/settings/test/weather_test.dart
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2019 The Fuchsia 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 'package:fidl_fuchsia_ui_remotewidgets/fidl_async.dart';
-import 'package:flutter_test/flutter_test.dart';
-import 'package:settings/settings.dart';
-
-void main() {
- test('Default Weather Spec', () async {
- Weather weather = Weather();
-
- // Should receive weather spec
- Spec spec = await weather.getSpec();
- expect(spec.groups.first.title, isNotNull);
- expect(spec.groups.first.values.isEmpty, false);
-
- // Confirm grid of locations present
- Iterable grid =
- spec.groups.first.values.where((v) => v.$tag == ValueTag.grid);
- expect(grid.isEmpty, isFalse);
-
- // Confirm celsius/fahrenheit button present
- bool hasButton =
- spec.groups.first.values.any((v) => v.$tag == ValueTag.button);
- expect(hasButton, isTrue);
- });
-
- test('Toggle Celsius', () async {
- Weather weather = Weather()
-
- // Toggle celsius off
- ..tempInFahrenheit = true;
-
- // Should receive weather spec
- Spec spec = await weather.getSpec();
- expect(spec.groups.first.title, isNotNull);
- expect(spec.groups.first.values.isEmpty, false);
-
- // Confirm 'use celsius' button present
- Iterable button =
- spec.groups.first.values.where((v) => v.$tag == ValueTag.button);
- expect(button.first.button.label, 'Use °C');
- });
-
- test('Toggle Fahrenheit', () async {
- Weather weather = Weather()
-
- // Toggle fahrenheit off
- ..tempInFahrenheit = false;
-
- // Should receive weather spec
- Spec spec = await weather.getSpec();
- expect(spec.groups.first.title, isNotNull);
- expect(spec.groups.first.values.isEmpty, false);
-
- // Confirm 'use fahrenheit' button present
- Iterable button =
- spec.groups.first.values.where((v) => v.$tag == ValueTag.button);
- expect(button.first.button.label, 'Use °F');
- });
-}