OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 /// Tests that [Settings] instances can be serialized and deserialized. | 5 /// Tests that [Settings] instances can be serialized and deserialized. |
6 library fletch_tests.settings_persist; | 6 library fletch_tests.settings_persist; |
7 | 7 |
8 import 'dart:async' show Future; | 8 import 'dart:async' show Future; |
9 | 9 |
10 import 'dart:convert'; | 10 import 'dart:convert'; |
11 | 11 |
(...skipping 25 matching lines...) Expand all Loading... |
37 Future<Null> main() async { | 37 Future<Null> main() async { |
38 testSettingsRoundTrip(new Settings.empty()); | 38 testSettingsRoundTrip(new Settings.empty()); |
39 testSettingsRoundTrip(new Settings( | 39 testSettingsRoundTrip(new Settings( |
40 fileUri(".packages", Uri.base), | 40 fileUri(".packages", Uri.base), |
41 ["a", "b", "c"], | 41 ["a", "b", "c"], |
42 {"a": "A", "b": "b"}, | 42 {"a": "A", "b": "b"}, |
43 new Address("localhost", 8080), | 43 new Address("localhost", 8080), |
44 DeviceType.embedded, | 44 DeviceType.embedded, |
45 IncrementalMode.experimental)); | 45 IncrementalMode.experimental)); |
46 } | 46 } |
OLD | NEW |