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

Side by Side Diff: packages/web_components/test/init_web_components_test.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 @initializeTracker
5 library web_components.test.init_web_components_test;
6
7 import 'package:unittest/html_config.dart';
8 import 'package:unittest/unittest.dart';
9 import 'package:initialize/initialize.dart' show LibraryIdentifier;
10 import 'package:initialize/src/initialize_tracker.dart';
11 import 'package:web_components/web_components.dart';
12
13 const String importPath = 'my_import.html';
14
15 main() {
16 useHtmlConfiguration();
17
18 test('can initialize scripts from html imports', () {
19 return initWebComponents().then((_) {
20 var expectedInitializers = [
21 const LibraryIdentifier(
22 #web_components.test.deps.b, null, 'deps/b.dart'),
23 // This one changes based on deploy mode because its an inline script.
24 const LibraryIdentifier(#web_components.test.deps.c, null, deployMode
25 ? 'init_web_components_test.html.0.dart'
26 : 'deps/c.html'),
27 const LibraryIdentifier(
28 #web_components.test.deps.a, null, 'deps/a.dart'),
29 const LibraryIdentifier(#web_components.test.init_web_components_test,
30 null, 'init_web_components_test.dart'),
31 ];
32 expect(InitializeTracker.seen, expectedInitializers);
33 });
34 });
35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698