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

Side by Side Diff: tests/compiler/dart2js/serialization/equivalence_test.dart

Issue 2897903003: Support loading binary data in dart2js (Closed)
Patch Set: Updated cf. comments Created 3 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
« no previous file with comments | « tests/compiler/dart2js/package_root_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 Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.serialization_test; 5 library dart2js.serialization_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import '../memory_compiler.dart'; 8 import '../memory_compiler.dart';
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/commandline_options.dart'; 10 import 'package:compiler/src/commandline_options.dart';
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 Element element1, Element element2, Element import1, Element import2) { 383 Element element1, Element element2, Element import1, Element import2) {
384 List<ImportElement> imports1 = element1.library.getImportsFor(import1); 384 List<ImportElement> imports1 = element1.library.getImportsFor(import1);
385 List<ImportElement> imports2 = element2.library.getImportsFor(import2); 385 List<ImportElement> imports2 = element2.library.getImportsFor(import2);
386 checkElementListIdentities(element1, element2, 386 checkElementListIdentities(element1, element2,
387 'importsFor($import1/$import2)', imports1, imports2); 387 'importsFor($import1/$import2)', imports1, imports2);
388 } 388 }
389 389
390 @override 390 @override
391 void visitCompilationUnitElement( 391 void visitCompilationUnitElement(
392 CompilationUnitElement element1, CompilationUnitElement element2) { 392 CompilationUnitElement element1, CompilationUnitElement element2) {
393 check(element1, element2, 'name', element1.name, element2.name);
394 checkElementIdentities( 393 checkElementIdentities(
395 element1, element2, 'library', element1.library, element2.library); 394 element1, element2, 'library', element1.library, element2.library);
396 check(element1, element2, 'script.resourceUri', element1.script.resourceUri, 395 check(element1, element2, 'script.resourceUri', element1.script.resourceUri,
397 element2.script.resourceUri); 396 element2.script.resourceUri);
398 List<Element> members1 = <Element>[]; 397 List<Element> members1 = <Element>[];
399 List<Element> members2 = <Element>[]; 398 List<Element> members2 = <Element>[];
400 element1.forEachLocalMember((Element member) { 399 element1.forEachLocalMember((Element member) {
401 members1.add(member); 400 members1.add(member);
402 }); 401 });
403 element2.forEachLocalMember((Element member) { 402 element2.forEachLocalMember((Element member) {
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 }); 835 });
837 } 836 }
838 837
839 @override 838 @override
840 void visitErroneousElement( 839 void visitErroneousElement(
841 ErroneousElement element1, ErroneousElement element2) { 840 ErroneousElement element1, ErroneousElement element2) {
842 check(element1, element2, 'messageKind', element1.messageKind, 841 check(element1, element2, 'messageKind', element1.messageKind,
843 element2.messageKind); 842 element2.messageKind);
844 } 843 }
845 } 844 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/package_root_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698