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

Side by Side Diff: tests/compiler/dart2js/serialization/reserialization_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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 dart2js.reserialization_test; 5 library dart2js.reserialization_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:compiler/src/compiler.dart'; 9 import 'package:compiler/src/compiler.dart';
10 import 'package:compiler/src/diagnostics/invariant.dart'; 10 import 'package:compiler/src/diagnostics/invariant.dart';
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 memorySourceFiles: serializedData2.toMemorySourceFiles(), 48 memorySourceFiles: serializedData2.toMemorySourceFiles(),
49 resolutionInputs: serializedData2.toUris(), 49 resolutionInputs: serializedData2.toUris(),
50 deserializeCompilationDataForTesting: true); 50 deserializeCompilationDataForTesting: true);
51 Compiler compiler3 = result3.compiler; 51 Compiler compiler3 = result3.compiler;
52 Iterable<LibraryElement> libraries3 = compiler3.libraryLoader.libraries; 52 Iterable<LibraryElement> libraries3 = compiler3.libraryLoader.libraries;
53 53
54 for (LibraryElement library1 in libraries1) { 54 for (LibraryElement library1 in libraries1) {
55 LibraryElement library2 = libraries2.firstWhere((LibraryElement library2) { 55 LibraryElement library2 = libraries2.firstWhere((LibraryElement library2) {
56 return library2.canonicalUri == library1.canonicalUri; 56 return library2.canonicalUri == library1.canonicalUri;
57 }); 57 });
58 Expect.isNotNull(library2, 58 Expect.isNotNull(
59 "No library found for ${library1.canonicalUri}."); 59 library2, "No library found for ${library1.canonicalUri}.");
60 checkLibraryContent('library1', 'library2', 'library', library1, library2); 60 checkLibraryContent('library1', 'library2', 'library', library1, library2);
61 61
62 LibraryElement library3 = libraries3.firstWhere((LibraryElement library3) { 62 LibraryElement library3 = libraries3.firstWhere((LibraryElement library3) {
63 return library3.canonicalUri == library1.canonicalUri; 63 return library3.canonicalUri == library1.canonicalUri;
64 }); 64 });
65 Expect.isNotNull(library3, 65 Expect.isNotNull(
66 "No library found for ${library1.canonicalUri}."); 66 library3, "No library found for ${library1.canonicalUri}.");
67 checkLibraryContent('library1', 'library3', 'library', library1, library3); 67 checkLibraryContent('library1', 'library3', 'library', library1, library3);
68 } 68 }
69 69
70 checkAllResolvedAsts(compiler1, compiler2); 70 checkAllResolvedAsts(compiler1, compiler2);
71 checkAllResolvedAsts(compiler1, compiler3); 71 checkAllResolvedAsts(compiler1, compiler3);
72 72
73 checkAllImpacts(compiler1, compiler2); 73 checkAllImpacts(compiler1, compiler2);
74 checkAllImpacts(compiler1, compiler3); 74 checkAllImpacts(compiler1, compiler3);
75 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698