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

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

Issue 644163002: Splitting interop support so `dart_support.js` is no longer required. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | « pkg/polymer/pubspec.yaml ('k') | pkg/web_components/CHANGELOG.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 71e0b414daa337d4857a310ed0c9862f8a1922fe..0ad19a0a38d76ccb2c33defbce2d327af8c0fbfc 100644
--- a/pkg/polymer/test/build/linter_test.dart
+++ b/pkg/polymer/test/build/linter_test.dart
@@ -152,6 +152,21 @@ void main() {
}, [
'warning: ${MISSING_INIT_POLYMER.snippet}',
]);
+
+ _testLinter('dart_support unnecessary', {
+ 'a|web/test.html': '<!DOCTYPE html><html>'
+ '<script src="packages/web_components/dart_support.js"></script>'
+ '<link rel="import" href="../../packages/polymer/polymer.html">'
+ '<polymer-element name="x-a"></polymer-element>'
+ '<script type="application/dart" src="foo.dart">'
+ '</script>'
+ '<script src="packages/browser/dart.js"></script>'
+ '</html>',
+ }, [
+ 'warning: ${DART_SUPPORT_NO_LONGER_REQUIRED.snippet} '
+ '(web/test.html 0 21)'
+ ]);
+
});
group('single script tag per document', () {
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | pkg/web_components/CHANGELOG.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698