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

Side by Side Diff: tests/lib/mirrors/mirrors_test.dart

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add missing files Created 7 years, 7 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 4
5 // TODO(rmacnak): Move the existing mirror tests here (a place for 5 // TODO(rmacnak): Move the existing mirror tests here (a place for
6 // cross-implementation tests). 6 // cross-implementation tests).
7 7
8 library MirrorsTest; 8 library MirrorsTest;
9 import "dart:mirrors"; 9 import "dart:mirrors";
10 import "../../../pkg/unittest/lib/unittest.dart"; 10 import "../../../pkg/unittest/lib/unittest.dart";
11 import 'dart:uri';
12 11
13 var topLevelField; 12 var topLevelField;
14 13
15 class Class<T> { 14 class Class<T> {
16 Class() { this.field = "default value"; } 15 Class() { this.field = "default value"; }
17 Class.withInitialValue(this.field); 16 Class.withInitialValue(this.field);
18 var field; 17 var field;
19 static var staticField; 18 static var staticField;
20 m(a, b, c) => {"a": a, "b": b, "c": c}; 19 m(a, b, c) => {"a": a, "b": b, "c": c};
21 } 20 }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 (Uri uri) => uri.path.endsWith('/mirrors_test.dart')); 213 (Uri uri) => uri.path.endsWith('/mirrors_test.dart'));
215 }); 214 });
216 test("Test dart library uri", () { 215 test("Test dart library uri", () {
217 testLibraryUri("test", (Uri uri) => uri == Uri.parse('dart:core')); 216 testLibraryUri("test", (Uri uri) => uri == Uri.parse('dart:core'));
218 }); 217 });
219 } 218 }
220 219
221 main() { 220 main() {
222 mainWithArgument(isDart2js: false); 221 mainWithArgument(isDart2js: false);
223 } 222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698