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

Unified Diff: test/html_import_annotation_test.dart

Issue 981273002: fix relative @HtmlImport paths in deep folders in deployment mode (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/foo/bar.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/html_import_annotation_test.dart
diff --git a/test/html_import_annotation_test.dart b/test/html_import_annotation_test.dart
index cae624a37b2dcf2b89fa63925fdb8c02b6ccb1a7..09a3ffd7af6b1b5105c63016248fc620c2152119 100644
--- a/test/html_import_annotation_test.dart
+++ b/test/html_import_annotation_test.dart
@@ -11,6 +11,7 @@ import 'package:initialize/initialize.dart' as init;
import 'package:unittest/html_config.dart';
import 'package:unittest/unittest.dart';
import 'package:web_components/html_import_annotation.dart';
+import 'foo/bar.dart';
const String importPath = 'my_import.html';
@@ -19,8 +20,14 @@ main() {
test('adds import to head', () {
return init.run().then((_) {
- var good = document.head.querySelector('link[href="$importPath"]');
- expect(good.import.body.text, 'Hello world!\n');
+ var my_import = document.head.querySelector('link[href="$importPath"]');
+ expect(my_import, isNotNull);
+ expect(my_import.import.body.text, 'Hello world!\n');
+
+ var bar = document.head.querySelector('link[href="foo/bar.html"]');
+ expect(bar, isNotNull);
+ expect(bar.import.body.text, 'bar\n');
+
var bad = document.head.querySelector('link[href="bad_import.html"]');
expect(bad.import, isNull);
});
« no previous file with comments | « test/foo/bar.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698