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

Side by Side Diff: pkg/polymer/example/canonicalization/test/dev_test.dart

Issue 148913003: Improve how we handle packages/ HTML imports. This resolves better any valid (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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) 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 /** Tests how canonicalization works during development. */ 5 /** Tests how canonicalization works during development. */
6 library canonicalization.dev_test; 6 library canonicalization.dev_test;
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';
(...skipping 15 matching lines...) Expand all
26 'initPolymer picks the "package:" url as the canonical url for script ' 26 'initPolymer picks the "package:" url as the canonical url for script '
27 'tags whose library is also loaded with a "package:" url.'); 27 'tags whose library is also loaded with a "package:" url.');
28 expect(b, 1, reason: 28 expect(b, 1, reason:
29 'initPolymer does nothing with script tags where the program doesn\'t ' 29 'initPolymer does nothing with script tags where the program doesn\'t '
30 'use a "package:" urls matching the same library.'); 30 'use a "package:" urls matching the same library.');
31 expect(c, 2, reason: 'c was always imported with "package:" urls.'); 31 expect(c, 2, reason: 'c was always imported with "package:" urls.');
32 expect(d1.d, 1, reason: 'this matches the import from a'); 32 expect(d1.d, 1, reason: 'this matches the import from a');
33 expect(d2.d, 1, reason: 'this matches the import from b'); 33 expect(d2.d, 1, reason: 'this matches the import from b');
34 }); 34 });
35 } 35 }
OLDNEW
« no previous file with comments | « pkg/polymer/example/canonicalization/test/dev3_test.html ('k') | pkg/polymer/example/canonicalization/test/dev_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698