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

Side by Side Diff: tests/language/type_error_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
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 "package:expect/expect.dart";
6
7 // Test that various type errors doesn't invoke user-defined code 5 // Test that various type errors doesn't invoke user-defined code
8 // during error reporting. 6 // during error reporting.
9 7
10 class MyClass {} 8 class MyClass {}
11 9
12 class IntTypeError { 10 class IntTypeError {
13 toString() { 11 toString() {
14 int value = wrap(this); 12 int value = wrap(this);
15 return super.toString(); 13 return super.toString();
16 } 14 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 185
188 checkCastError(new IntCastError()); 186 checkCastError(new IntCastError());
189 checkCastError(new StringCastError()); 187 checkCastError(new StringCastError());
190 checkCastError(new DoubleCastError()); 188 checkCastError(new DoubleCastError());
191 checkCastError(new NumCastError()); 189 checkCastError(new NumCastError());
192 checkCastError(new BoolCastError()); 190 checkCastError(new BoolCastError());
193 checkCastError(new FunctionCastError()); 191 checkCastError(new FunctionCastError());
194 checkCastError(new MyClassCastError()); 192 checkCastError(new MyClassCastError());
195 checkCastError(new ListCastError()); 193 checkCastError(new ListCastError());
196 } 194 }
OLDNEW
« no previous file with comments | « tests/language/type_checks_in_factory_method_test.dart ('k') | tests/language/type_guard_conversion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698