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

Side by Side Diff: packages/polymer/e2e_test/canonicalization/test/dir/dev_common.dart

Issue 2312183003: Removed Polymer from Observatory deps (Closed)
Patch Set: Created 4 years, 3 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) 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
3 // BSD-style license that can be found in the LICENSE file.
4
5 /// Tests how canonicalization works when developing in Dartium. This is
6 /// identical to the code in ../dir/deploy_common.dart but we need to copy it
7 /// here because the 'packages/...' URLs below should be relative from the
8 /// entrypoint directory.
9 library canonicalization.test.dir.dev_common;
10
11 import 'package:unittest/unittest.dart';
12 import 'package:unittest/html_config.dart';
13 import 'package:polymer/polymer.dart';
14
15 import 'package:canonicalization/a.dart' show a;
16 import 'packages/canonicalization/b.dart' show b;
17 import 'package:canonicalization/c.dart' show c;
18 import 'package:canonicalization/d.dart' as d1 show d;
19 import 'packages/canonicalization/d.dart' as d2 show d;
20
21 main() {
22 initPolymer();
23 useHtmlConfiguration();
24
25 setUp(() => Polymer.onReady);
26
27 test('canonicalization', () {
28 expect(a, 1, reason: 'Dartium loads "a" via a "package:" url.');
29
30 // We shouldn't be using 'packages/', but we do just to check that Dartium
31 // can't infer a "package:" url for it.
32 expect(b, 1, reason: 'Dartium picks the relative url for "b".');
33 expect(c, 2, reason: '"c" was always imported with "package:" urls.');
34 expect(d1.d, 1, reason: '"a" loads via "package:", but "b" does not.');
35 expect(d2.d, 1, reason: '"b" loads via a relative url, but "a" does not.');
36 });
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698