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

Side by Side Diff: tests/compiler/dart2js/class_order_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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
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 "package:expect/expect.dart";
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import 'compiler_helper.dart'; 8 import 'compiler_helper.dart';
9 9
10 const String TEST_ONE = r""" 10 const String TEST_ONE = r"""
(...skipping 19 matching lines...) Expand all
30 new A().foo(); 30 new A().foo();
31 } 31 }
32 """; 32 """;
33 33
34 main() { 34 main() {
35 // Make sure that class A, B and C are emitted in that order. For simplicity 35 // Make sure that class A, B and C are emitted in that order. For simplicity
36 // we just verify that their members are in the correct order. 36 // we just verify that their members are in the correct order.
37 RegExp regexp = new RegExp(r"foo\$0?:(.|\n)*bar\$0:(.|\n)*gee\$0:"); 37 RegExp regexp = new RegExp(r"foo\$0?:(.|\n)*bar\$0:(.|\n)*gee\$0:");
38 38
39 asyncTest(() => compileAll(TEST_ONE).then((generated) { 39 asyncTest(() => compileAll(TEST_ONE).then((generated) {
40 Expect.isTrue(regexp.hasMatch(generated)); 40 Expect.isTrue(regexp.hasMatch(generated));
41 })); 41 }));
42 42
43 asyncTest(() => compileAll(TEST_TWO).then((generated) { 43 asyncTest(() => compileAll(TEST_TWO).then((generated) {
44 Expect.isTrue(regexp.hasMatch(generated)); 44 Expect.isTrue(regexp.hasMatch(generated));
45 })); 45 }));
46 } 46 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/class_codegen_test.dart ('k') | tests/compiler/dart2js/class_set_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698