Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: tests/fletchc/serialize_settings_tests.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/fletchc/run.dart ('k') | tests/fletchc/test_incremental_debug_info.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/fletchc/serialize_settings_tests.dart
diff --git a/tests/fletchc/serialize_settings_tests.dart b/tests/fletchc/serialize_settings_tests.dart
deleted file mode 100644
index 894971b2b983db97e25257e5e8226e2d028c9815..0000000000000000000000000000000000000000
--- a/tests/fletchc/serialize_settings_tests.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-/// Tests that [Settings] instances can be serialized and deserialized.
-library fletch_tests.settings_persist;
-
-import 'dart:async' show Future;
-
-import 'dart:convert';
-
-import 'package:fletchc/src/worker/developer.dart' show
- Address,
- DeviceType,
- IncrementalMode,
- Settings,
- parseSettings;
-
-import 'package:fletchc/src/verbs/infrastructure.dart' show
- fileUri;
-
-import 'package:expect/expect.dart';
-
-void testSettingsRoundTrip(Settings settings) {
- Settings before = settings;
- Map<String, dynamic> json = before.toJson();
- Settings after = parseSettings(const JsonCodec().encode(json),
- Uri.parse("file:///dummy.fletch-settings"));
- Expect.equals(before.packages, after.packages);
- Expect.listEquals(before.options, after.options);
- Expect.mapEquals(before.constants, after.constants);
- Expect.equals(before.deviceAddress, after.deviceAddress);
- Expect.equals(before.deviceType, after.deviceType);
- Expect.equals(before.incrementalMode, after.incrementalMode);
-}
-
-Future<Null> main() async {
- testSettingsRoundTrip(new Settings.empty());
- testSettingsRoundTrip(new Settings(
- fileUri(".packages", Uri.base),
- ["a", "b", "c"],
- {"a": "A", "b": "b"},
- new Address("localhost", 8080),
- DeviceType.embedded,
- IncrementalMode.experimental));
-}
« no previous file with comments | « tests/fletchc/run.dart ('k') | tests/fletchc/test_incremental_debug_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698