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

Side by Side Diff: pkg/polymer/e2e_test/canonicalization/test/deploy_common.dart

Issue 293023008: Bring back initPolymer, allow boot.js only if using "polymer_experimental.html". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Tests how canonicalization works when using the deployed app. 5 /// Tests how canonicalization works when using the deployed app.
6 library canonicalization.test.common; 6 library canonicalization.test.deploy_common;
7 7
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'package:unittest/html_config.dart'; 9 import 'package:unittest/html_config.dart';
10 import 'package:polymer/polymer.dart'; 10 import 'package:polymer/polymer.dart';
11 11
12 import 'package:canonicalization/a.dart'; 12 import 'package:canonicalization/a.dart' show a;
13 import 'packages/canonicalization/b.dart'; 13 import 'packages/canonicalization/b.dart' show b;
14 import 'package:canonicalization/c.dart'; 14 import 'package:canonicalization/c.dart' show c;
15 import 'package:canonicalization/d.dart' as d1; 15 import 'package:canonicalization/d.dart' as d1 show d;
16 import 'packages/canonicalization/d.dart' as d2; 16 import 'packages/canonicalization/d.dart' as d2 show d;
17 17
18 tests() { 18 main() {
19 initPolymer();
19 useHtmlConfiguration(); 20 useHtmlConfiguration();
20 21
21 setUp(() => Polymer.onReady); 22 setUp(() => Polymer.onReady);
22 23
23 test('canonicalization', () { 24 test('canonicalization', () {
24 expect(a, 1, reason: 25 expect(a, 1, reason:
25 'deploy picks the "package:" url as the canonical url for script tags.'); 26 'deploy picks the "package:" url as the canonical url for script tags.');
26 27
27 // We shouldn't be using 'packages/' above, so that's ok. 28 // We shouldn't be using 'packages/' above, so that's ok.
28 expect(b, 0, reason: 29 expect(b, 0, reason:
29 'we pick the "package:" url as the canonical url for script tags.'); 30 'we pick the "package:" url as the canonical url for script tags.');
30 expect(c, 2, reason: 'c was always imported with "package:" urls.'); 31 expect(c, 2, reason: 'c was always imported with "package:" urls.');
31 expect(d1.d, 2, reason: 'both a and b are loaded using package: urls'); 32 expect(d1.d, 2, reason: 'both a and b are loaded using package: urls');
32
33 expect(d2.d, 0, reason: 'both a and b are loaded using package: urls'); 33 expect(d2.d, 0, reason: 'both a and b are loaded using package: urls');
34 }); 34 });
35 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698