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

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

Issue 2034973003: Handle deferred access of unserialized code. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 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
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.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) 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.serialization_test_data; 5 library dart2js.serialization_test_data;
6 6
7 const List<Test> TESTS = const <Test>[ 7 const List<Test> TESTS = const <Test>[
8 const Test('Empty program', const { 8 const Test('Empty program', const {
9 'main.dart': 'main() {}' 9 'main.dart': 'main() {}'
10 }), 10 }),
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 class S {} 350 class S {}
351 class M {} 351 class M {}
352 class C1 extends S with M {} 352 class C1 extends S with M {}
353 class C2 extends S with M {} 353 class C2 extends S with M {}
354 main() { 354 main() {
355 new C1(); 355 new C1();
356 new C2(); 356 new C2();
357 } 357 }
358 ''', 358 ''',
359 }), 359 }),
360
361 const Test('Deferred loading', const {
362 'main.dart': '''
363 import 'a.dart' deferred as lib;
364 main() {
365 lib.foo();
366 }
367 ''',
368 'a.dart': '''
369 void foo() {}
370 ''',
371 }),
360 ]; 372 ];
361 373
362 class Test { 374 class Test {
363 final String name; 375 final String name;
364 final Map sourceFiles; 376 final Map sourceFiles;
365 final Map preserializedSourceFiles; 377 final Map preserializedSourceFiles;
366 final Map unserializedSourceFiles; 378 final Map unserializedSourceFiles;
367 final int expectedErrorCount; 379 final int expectedErrorCount;
368 final int expectedWarningCount; 380 final int expectedWarningCount;
369 final int expectedHintCount; 381 final int expectedHintCount;
370 final int expectedInfoCount; 382 final int expectedInfoCount;
371 383
372 const Test( 384 const Test(
373 this.name, 385 this.name,
374 this.sourceFiles, 386 this.sourceFiles,
375 {this.preserializedSourceFiles, 387 {this.preserializedSourceFiles,
376 this.unserializedSourceFiles, 388 this.unserializedSourceFiles,
377 this.expectedErrorCount: 0, 389 this.expectedErrorCount: 0,
378 this.expectedWarningCount: 0, 390 this.expectedWarningCount: 0,
379 this.expectedHintCount: 0, 391 this.expectedHintCount: 0,
380 this.expectedInfoCount: 0}); 392 this.expectedInfoCount: 0});
381 } 393 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698