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

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

Issue 723393003: update to polymer js 0.5.1 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final tweaks Created 6 years 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 0ad19a0a38d76ccb2c33defbce2d327af8c0fbfc..c08e5dfbfca2f922c2116317a94f27c842cf5cbf 100644
--- a/pkg/polymer/test/build/linter_test.dart
+++ b/pkg/polymer/test/build/linter_test.dart
@@ -167,6 +167,30 @@ void main() {
'(web/test.html 0 21)'
]);
+ _testLinter('webcomponents unnecessary', {
+ 'a|web/test.html': '<!DOCTYPE html><html>'
+ '$WEB_COMPONENTS_JS_TAG'
+ '<script type="application/dart" src="foo.dart">'
+ '</script>'
+ '</html>',
+ }, [
+ 'warning: ${WEB_COMPONENTS_NO_LONGER_REQUIRED.snippet} '
+ '(web/test.html 0 21)'
+ ]);
+
+
+ _testLinter('platform.js -> webcomponents.js', {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html>'
+ '$PLATFORM_JS_TAG'
+ '<script type="application/dart" src="foo.dart">'
+ '</script>'
+ '</html>',
+ }, [
+ 'warning: ${PLATFORM_JS_RENAMED.snippet} '
+ '(web/test.html 0 21)'
+ ]);
+
});
group('single script tag per document', () {

Powered by Google App Engine
This is Rietveld 408576698