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

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

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test of the graph segmentation algorithm used by deferred loading 5 // Test of the graph segmentation algorithm used by deferred loading
6 // to determine which elements can be deferred and which libraries 6 // to determine which elements can be deferred and which libraries
7 // much be included in the initial download (loaded eagerly). 7 // much be included in the initial download (loaded eagerly).
8 8
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/dart2jslib.dart'; 10 import 'package:compiler/src/compiler.dart';
11 import 'package:expect/expect.dart'; 11 import 'package:expect/expect.dart';
12 import 'memory_compiler.dart'; 12 import 'memory_compiler.dart';
13 13
14 void main() { 14 void main() {
15 asyncTest(() async { 15 asyncTest(() async {
16 CompilationResult result = 16 CompilationResult result =
17 await runCompiler(memorySourceFiles: MEMORY_SOURCE_FILES); 17 await runCompiler(memorySourceFiles: MEMORY_SOURCE_FILES);
18 Compiler compiler = result.compiler; 18 Compiler compiler = result.compiler;
19 var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement; 19 var outputUnitForElement = compiler.deferredLoadTask.outputUnitForElement;
20 var mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit; 20 var mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit;
(...skipping 22 matching lines...) Expand all
43 import 'dart:html'; 43 import 'dart:html';
44 var a = CustomType; 44 var a = CustomType;
45 45
46 class CustomType extends HtmlElement { 46 class CustomType extends HtmlElement {
47 factory CustomType() => null; 47 factory CustomType() => null;
48 CustomType.created() : super.created() ; 48 CustomType.created() : super.created() ;
49 } 49 }
50 50
51 foo() {} 51 foo() {}
52 """,}; 52 """,};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698