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

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

Issue 2684793002: Fix tests broken by ac6bf5926f60e81454ec5d2350a12b50d8b7481e (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « tests/compiler/dart2js/missing_file_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Fletch 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 import "package:compiler/src/platform_configuration.dart"; 5 import "package:compiler/src/platform_configuration.dart";
6 import "package:compiler/src/source_file_provider.dart"; 6 import "package:compiler/src/source_file_provider.dart";
7 import "package:compiler/compiler_new.dart"; 7 import "package:compiler/compiler_new.dart";
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 9
10 Uri unsupported = Uri.parse("unsupported:");
11
12 main() async { 10 main() async {
13 CompilerInput input = new CompilerSourceFileProvider(); 11 CompilerInput input = new CompilerSourceFileProvider();
14 Map<String, Uri> client = 12 Map<String, Uri> client =
15 await load(Uri.base.resolve("sdk/lib/dart_client.platform"), input); 13 await load(Uri.base.resolve("sdk/lib/dart_client.platform"), input);
16 Map<String, Uri> server = 14 Map<String, Uri> server =
17 await load(Uri.base.resolve("sdk/lib/dart_server.platform"), input); 15 await load(Uri.base.resolve("sdk/lib/dart_server.platform"), input);
18 Map<String, Uri> shared = 16 Map<String, Uri> shared =
19 await load(Uri.base.resolve("sdk/lib/dart_shared.platform"), input); 17 await load(Uri.base.resolve("sdk/lib/dart_shared.platform"), input);
20 Expect.setEquals(new Set.from(shared.keys), new Set.from(client.keys)); 18 Expect.setEquals(new Set.from(shared.keys), new Set.from(client.keys));
21 Expect.setEquals(new Set.from(shared.keys), new Set.from(server.keys)); 19 Expect.setEquals(new Set.from(shared.keys), new Set.from(server.keys));
22 20
23 for (String libraryName in shared.keys) { 21 for (String libraryName in shared.keys) {
24 test(Map<String, Uri> m) { 22 test(Map<String, Uri> m) {
25 if (m[libraryName] != unsupported && shared[libraryName] != unsupported) { 23 if (m[libraryName].scheme != 'unsupported' &&
24 shared[libraryName].scheme != 'unsupported') {
26 Expect.equals(shared[libraryName], m[libraryName]); 25 Expect.equals(shared[libraryName], m[libraryName]);
27 } 26 }
28 } 27 }
29 28
30 test(client); 29 test(client);
31 test(server); 30 test(server);
32 } 31 }
33 } 32 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/missing_file_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698