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

Unified Diff: pkg/polymer/test/build/linter_test.dart

Issue 23456028: report error message when import urls are broken. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/polymer/test/build/linter_test.dart
diff --git a/pkg/polymer/test/build/linter_test.dart b/pkg/polymer/test/build/linter_test.dart
index c2eb75e3cc2b222c6be9e09fc775bc82de36570c..e4f3630f58dde7c1b47521a01c1b71d9b208a9fd 100644
--- a/pkg/polymer/test/build/linter_test.dart
+++ b/pkg/polymer/test/build/linter_test.dart
@@ -66,6 +66,17 @@ void main() {
'(second definition). (lib/test.html 2 0)'
});
+ _testLinter('non existing file', {
+ 'a|lib/test.html': '''<html>
+ <link rel="import" href="b.html">
+ <polymer-element name="x-a"></polymer-element>
+ </html>'''.replaceAll(' ', ''),
+ }, {
+ 'a|lib/test.html.messages':
+ 'error: couldn\'t find imported asset "lib/b.html" in package '
+ '"a". (lib/test.html 1 0)'
+ });
+
_testLinter('other package', {
'b|lib/b.html': '''<html>
<polymer-element name="x-a"></polymer-element>
« pkg/polymer/lib/src/build/linter.dart ('K') | « pkg/polymer/lib/src/build/linter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698