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

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

Issue 783393005: fix logic for detecting when in an auto-binding element (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase 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
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | no next file » | 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 c08e5dfbfca2f922c2116317a94f27c842cf5cbf..89e226377c4bb9a8c2ce1d598aa6f197c33d08e3 100644
--- a/pkg/polymer/test/build/linter_test.dart
+++ b/pkg/polymer/test/build/linter_test.dart
@@ -477,13 +477,17 @@ void main() {
'a|lib/test.html': '''<html><body>
<template is="auto-binding-dart">
<div on-foo="{{something}}"></div>
+ <template>
+ <div>foo</div>
+ </template>
+ <div on-foo="{{something}}"></div>
</template>
'''.replaceAll(' ', ''),
}, []);
_testLinter('on-foo is only supported in polymer elements', {
'a|lib/test.html': '''<html><body>
- <div on-foo="something"></div>
+ <div on-foo="{{something}}"></div>
'''.replaceAll(' ', ''),
}, [
'warning: ${EVENT_HANDLERS_ONLY_WITHIN_POLYMER.snippet} '
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698