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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 foo(t0) { 7 foo(t0) {
6 var a = t0, b = baz(), c = bar(); 8 var a = t0, b = baz(), c = bar();
7 if (t0 == 'foo') { 9 if (t0 == 'foo') {
8 // Force a SSA swapping problem where dart2js used to use 't0' as 10 // Force a SSA swapping problem where dart2js used to use 't0' as
9 // a temporary variable. 11 // a temporary variable.
10 var tmp = c; 12 var tmp = c;
11 c = b; 13 c = b;
12 b = tmp; 14 b = tmp;
13 } 15 }
14 16
15 Expect.equals('foo', a); 17 Expect.equals('foo', a);
16 Expect.equals('foo', t0); 18 Expect.equals('foo', t0);
17 Expect.equals('bar', b); 19 Expect.equals('bar', b);
18 Expect.equals('baz', c); 20 Expect.equals('baz', c);
19 } 21 }
20 22
21 bar() => 'bar'; 23 bar() => 'bar';
22 baz() => 'baz'; 24 baz() => 'baz';
23 25
24 main() { 26 main() {
25 foo('foo'); 27 foo('foo');
26 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698