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

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

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 years, 6 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Check that relative URIs are resolved against the canonical name of a 5 /// Check that relative URIs are resolved against the canonical name of a
6 /// library. This only matters for dart:-libraries, so this test mocks up two 6 /// library. This only matters for dart:-libraries, so this test mocks up two
7 /// dart:-libraries. 7 /// dart:-libraries.
8 8
9 import "dart:io";
10
11 import "dart:async"; 9 import "dart:async";
12 10
13 import "memory_source_file_helper.dart"; 11 import "memory_source_file_helper.dart";
14 12
15 import "package:async_helper/async_helper.dart"; 13 import "package:async_helper/async_helper.dart";
16 14
17 import 'package:expect/expect.dart' show Expect; 15 import 'package:expect/expect.dart' show Expect;
18 16
19 import 'package:compiler/compiler_new.dart'; 17 import 'package:compiler/compiler_new.dart';
20 18
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 var libraries = 90 var libraries =
93 await compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1")); 91 await compiler.libraryLoader.loadLibrary(Uri.parse("dart:m_o_c_k_1"));
94 await checkLibraries(libraries); 92 await checkLibraries(libraries);
95 asyncSuccess(null); 93 asyncSuccess(null);
96 } 94 }
97 95
98 const Map MEMORY_SOURCE_FILES = const { 96 const Map MEMORY_SOURCE_FILES = const {
99 "mock1.dart": "library mock1; import 'mock2.dart';", 97 "mock1.dart": "library mock1; import 'mock2.dart';",
100 "mock2.dart": "library mock2;", 98 "mock2.dart": "library mock2;",
101 }; 99 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698