| 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 6cd294a5bcc21eefb9f369a40cc1d61d36cb3fff..0097233792d4f5c37b60c98dee2174255dc768f4 100644
|
| --- a/pkg/polymer/test/build/linter_test.dart
|
| +++ b/pkg/polymer/test/build/linter_test.dart
|
| @@ -34,8 +34,7 @@ void main() {
|
| _testLinter('missing Dart code and dart.js', {
|
| 'a|web/test.html': '<!DOCTYPE html><html></html>',
|
| }, {
|
| - 'a|web/test.html.messages': 'error: $USE_INIT_DART\n'
|
| - 'error: $USE_DART_JS',
|
| + 'a|web/test.html.messages': 'error: $USE_INIT_DART',
|
| });
|
|
|
| _testLinter('using deprecated boot.js', {
|
| @@ -59,7 +58,7 @@ void main() {
|
| '</script>'
|
| '<script src="packages/browser/dart.js"></script>'
|
| }, {
|
| - 'a|web/test.html.messages':
|
| + 'a|web/test.html.messages':
|
| 'warning: Only one "application/dart" script tag per document is'
|
| ' allowed. (web/test.html 1 0)',
|
| });
|
| @@ -72,7 +71,7 @@ void main() {
|
| '</script>'
|
| '<script src="packages/browser/dart.js"></script>'
|
| }, {
|
| - 'a|lib/test.html.messages':
|
| + 'a|lib/test.html.messages':
|
| 'warning: Only one "application/dart" script tag per document is'
|
| ' allowed. (lib/test.html 1 0)',
|
| });
|
| @@ -87,7 +86,7 @@ void main() {
|
| '</script>'
|
| '<script src="packages/browser/dart.js"></script>'
|
| }, {
|
| - 'a|web/test.html.messages':
|
| + 'a|web/test.html.messages':
|
| 'warning: Only one "application/dart" script tag per document is'
|
| ' allowed. (web/test.html 1 0)',
|
| });
|
| @@ -100,8 +99,7 @@ void main() {
|
| 'a|web/test.html.messages':
|
| 'warning: Unexpected start tag (html). Expected DOCTYPE. '
|
| '(web/test.html 0 0)\n'
|
| - 'error: $USE_INIT_DART\n'
|
| - 'error: $USE_DART_JS',
|
| + 'error: $USE_INIT_DART',
|
| });
|
|
|
| _testLinter('in lib', {
|
| @@ -361,18 +359,12 @@ void main() {
|
| '(lib/test.html 1 33)'
|
| });
|
|
|
| - _testLinter('on-foo-bar is no longer supported', {
|
| + _testLinter('on-foo-bar is supported as a custom event name', {
|
| 'a|lib/test.html': '''<html><body>
|
| <polymer-element name="x-a"><div on-foo-bar="quux"></div>
|
| </polymer-element>
|
| '''.replaceAll(' ', ''),
|
| - }, {
|
| - 'a|lib/test.html.messages':
|
| - 'warning: Invalid event name "on-foo-bar". After the "on-" the '
|
| - 'event name should not use dashes. For example use "on-fooBar" or '
|
| - '"on-foobar" (both forms are equivalent in HTML). '
|
| - '(lib/test.html 1 33)'
|
| - });
|
| + }, {});
|
| });
|
|
|
| group('using custom tags', () {
|
|
|