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

Side by Side Diff: tests/language/cascade_2_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
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
5 // Test cascades, issues 7494 (vm), 7689 (dart2js). 7 // Test cascades, issues 7494 (vm), 7689 (dart2js).
6 8
7 main() { 9 main() {
8 var a = new Element(null); 10 var a = new Element(null);
9 Expect.equals(1, a.path0.length); 11 Expect.equals(1, a.path0.length);
10 Expect.equals(a, a.path0[0]); 12 Expect.equals(a, a.path0[0]);
11 13
12 // Issue 7693: e0 ? e1 : e2..f() parses as (e0 ? e1 : e2)..f(). 14 // Issue 7693: e0 ? e1 : e2..f() parses as (e0 ? e1 : e2)..f().
13 Expect.equals(2, a.path1.length); 15 Expect.equals(2, a.path1.length);
14 Expect.equals(a, a.path1[0]); 16 Expect.equals(a, a.path1[0]);
(...skipping 29 matching lines...) Expand all
44 } 46 }
45 47
46 List<Element> get path1 { 48 List<Element> get path1 {
47 return (parent == null) ? <Element>[this] : parent.path1..add(this); 49 return (parent == null) ? <Element>[this] : parent.path1..add(this);
48 } 50 }
49 51
50 List<Element> get path2 { 52 List<Element> get path2 {
51 return (parent == null) ? <Element>[this] : (parent.path2..add(this)); 53 return (parent == null) ? <Element>[this] : (parent.path2..add(this));
52 } 54 }
53 } 55 }
OLDNEW
« no previous file with comments | « tests/language/canonical_const_test.dart ('k') | tests/language/cascade_in_expression_function_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698