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

Side by Side Diff: tests/compiler/dart2js/part_of_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library part_of_test; 5 library part_of_test;
6 6
7 import "package:expect/expect.dart";
8 import 'dart:uri'; 7 import 'dart:uri';
9 import 'mock_compiler.dart'; 8 import 'mock_compiler.dart';
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 9 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
11 show MessageKind; 10 show MessageKind;
12 11
13 final libraryUri = new Uri('test:library.dart'); 12 final libraryUri = new Uri('test:library.dart');
14 const String LIBRARY_SOURCE = ''' 13 const String LIBRARY_SOURCE = '''
15 library foo; 14 library foo;
16 part 'part.dart'; 15 part 'part.dart';
17 '''; 16 ''';
(...skipping 11 matching lines...) Expand all
29 compiler.libraryLoader.loadLibrary(libraryUri, null, libraryUri); 28 compiler.libraryLoader.loadLibrary(libraryUri, null, libraryUri);
30 print('errors: ${compiler.errors}'); 29 print('errors: ${compiler.errors}');
31 print('warnings: ${compiler.warnings}'); 30 print('warnings: ${compiler.warnings}');
32 Expect.isTrue(compiler.errors.isEmpty); 31 Expect.isTrue(compiler.errors.isEmpty);
33 Expect.equals(1, compiler.warnings.length); 32 Expect.equals(1, compiler.warnings.length);
34 Expect.equals(MessageKind.LIBRARY_NAME_MISMATCH, 33 Expect.equals(MessageKind.LIBRARY_NAME_MISMATCH,
35 compiler.warnings[0].message.kind); 34 compiler.warnings[0].message.kind);
36 Expect.equals('foo', 35 Expect.equals('foo',
37 compiler.warnings[0].message.arguments['libraryName'].toString()); 36 compiler.warnings[0].message.arguments['libraryName'].toString());
38 } 37 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/parser_test.dart ('k') | tests/compiler/dart2js/partial_parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698