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

Side by Side Diff: tests/isolate/serialization_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/isolate/port_test.dart ('k') | tests/isolate/stream_mangling_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Dart test program for testing serialization of messages without spawning 5 // Dart test program for testing serialization of messages without spawning
6 // isolates. 6 // isolates.
7 7
8 // --------------------------------------------------------------------------- 8 // ---------------------------------------------------------------------------
9 // Serialization test. 9 // Serialization test.
10 // --------------------------------------------------------------------------- 10 // ---------------------------------------------------------------------------
11 library SerializationTest; 11 library SerializationTest;
12 import "package:expect/expect.dart";
12 import 'dart:isolate'; 13 import 'dart:isolate';
13 14
14 main() { 15 main() {
15 // TODO(sigmund): fix once we can disable privacy for testing (bug #1882) 16 // TODO(sigmund): fix once we can disable privacy for testing (bug #1882)
16 testAllTypes(TestingOnly.copy); 17 testAllTypes(TestingOnly.copy);
17 testAllTypes(TestingOnly.serialize); 18 testAllTypes(TestingOnly.serialize);
18 } 19 }
19 20
20 void testAllTypes(Function f) { 21 void testAllTypes(Function f) {
21 copyAndVerify(0, f); 22 copyAndVerify(0, f);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 Expect.isTrue(copy is Map); 69 Expect.isTrue(copy is Map);
69 Expect.equals(o.length, copy.length); 70 Expect.equals(o.length, copy.length);
70 o.forEach((key, value) { 71 o.forEach((key, value) {
71 Expect.isTrue(copy.containsKey(key)); 72 Expect.isTrue(copy.containsKey(key));
72 verify(value, copy[key]); 73 verify(value, copy[key]);
73 }); 74 });
74 } else { 75 } else {
75 Expect.fail("Unexpected object encountered"); 76 Expect.fail("Unexpected object encountered");
76 } 77 }
77 } 78 }
OLDNEW
« no previous file with comments | « tests/isolate/port_test.dart ('k') | tests/isolate/stream_mangling_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698