| OLD | NEW |
| 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 when using the deployed app. */ | 5 /// Tests how canonicalization works when using the deployed app. |
| 6 library canonicalization.deploy_test; | 6 library canonicalization.deploy_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'; |
| 11 | 11 |
| 12 import 'package:canonicalization/a.dart'; | 12 import 'package:canonicalization/a.dart'; |
| 13 import 'packages/canonicalization/b.dart'; | 13 import 'packages/canonicalization/b.dart'; |
| 14 import 'package:canonicalization/c.dart'; | 14 import 'package:canonicalization/c.dart'; |
| 15 import 'package:canonicalization/d.dart' as d1; | 15 import 'package:canonicalization/d.dart' as d1; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 30 // that's ok. | 30 // that's ok. |
| 31 expect(b, 0, reason: | 31 expect(b, 0, reason: |
| 32 'deploy picks the "package:" url as the canonical url for script tags.'); | 32 'deploy picks the "package:" url as the canonical url for script tags.'); |
| 33 expect(c, 2, reason: 'c was always imported with "package:" urls.'); | 33 expect(c, 2, reason: 'c was always imported with "package:" urls.'); |
| 34 expect(d1.d, 2, reason: 'both a and b are loaded using package: urls'); | 34 expect(d1.d, 2, reason: 'both a and b are loaded using package: urls'); |
| 35 | 35 |
| 36 // same here | 36 // same here |
| 37 expect(d2.d, 0, reason: 'both a and b are loaded using package: urls'); | 37 expect(d2.d, 0, reason: 'both a and b are loaded using package: urls'); |
| 38 }); | 38 }); |
| 39 } | 39 } |
| OLD | NEW |