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

Side by Side Diff: runtime/vm/snapshot_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 | « runtime/vm/snapshot_test.cc ('k') | samples/tests/samples/chat/chat_server_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import 'dart:isolate'; 5 import 'dart:isolate';
6 import 'dart:async'; 6 import 'dart:async';
7 7
8 class Expect {
9 static void equals(x, y) {
10 if (x != y) throw new RuntimeError('not equal');
11 }
12 }
13
8 class Fields { 14 class Fields {
9 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {} 15 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {}
10 int fld1; 16 int fld1;
11 final int fld2; 17 final int fld2;
12 static int fld3; 18 static int fld3;
13 static const int fld4 = 10; 19 static const int fld4 = 10;
14 bool fld5; 20 bool fld5;
15 } 21 }
16 class FieldsTest { 22 class FieldsTest {
17 static Fields testMain() { 23 static Fields testMain() {
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 void processLines() { 1556 void processLines() {
1551 port.receive((message, SendPort replyTo) { 1557 port.receive((message, SendPort replyTo) {
1552 if (message == TERMINATION_MESSAGE) { 1558 if (message == TERMINATION_MESSAGE) {
1553 assert(replyTo == null); 1559 assert(replyTo == null);
1554 port.close(); 1560 port.close();
1555 } else { 1561 } else {
1556 replyTo.send(processLine(message), null); 1562 replyTo.send(processLine(message), null);
1557 } 1563 }
1558 }); 1564 });
1559 } 1565 }
OLDNEW
« no previous file with comments | « runtime/vm/snapshot_test.cc ('k') | samples/tests/samples/chat/chat_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698