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

Side by Side Diff: tests/compiler/dart2js/class_order_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) 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 // Test that parameters keep their names in the output. 4 // Test that parameters keep their names in the output.
5 5
6 import "package:expect/expect.dart";
6 import 'compiler_helper.dart'; 7 import 'compiler_helper.dart';
7 8
8 const String TEST_ONE = r""" 9 const String TEST_ONE = r"""
9 class A { foo() => 499; } 10 class A { foo() => 499; }
10 class B { bar() => 499; } 11 class B { bar() => 499; }
11 class C { gee() => 499; } 12 class C { gee() => 499; }
12 13
13 void main() { 14 void main() {
14 new C().gee(); 15 new C().gee();
15 new B().bar(); 16 new B().bar();
(...skipping 17 matching lines...) Expand all
33 // Make sure that class A, B and C are emitted in that order. For simplicity 34 // Make sure that class A, B and C are emitted in that order. For simplicity
34 // we just verify that their members are in the correct order. 35 // we just verify that their members are in the correct order.
35 RegExp regexp = new RegExp(r"foo\$0?:(.|\n)*bar\$0:(.|\n)*gee\$0:"); 36 RegExp regexp = new RegExp(r"foo\$0?:(.|\n)*bar\$0:(.|\n)*gee\$0:");
36 37
37 String generated = compileAll(TEST_ONE); 38 String generated = compileAll(TEST_ONE);
38 Expect.isTrue(regexp.hasMatch(generated)); 39 Expect.isTrue(regexp.hasMatch(generated));
39 40
40 generated = compileAll(TEST_TWO); 41 generated = compileAll(TEST_TWO);
41 Expect.isTrue(regexp.hasMatch(generated)); 42 Expect.isTrue(regexp.hasMatch(generated));
42 } 43 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/class_codegen_test.dart ('k') | tests/compiler/dart2js/closure_codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698