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

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

Issue 487793002: html escape log messages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: use const constructor for HtmlEscape Created 6 years, 4 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/test/build/import_inliner_test.dart ('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 a834f9e546801ceca2dcdb0ee65bdc87f576f129..4ec76776b0e8942253f877acd08fcb6ab1abeb5f 100644
--- a/pkg/polymer/test/build/linter_test.dart
+++ b/pkg/polymer/test/build/linter_test.dart
@@ -664,11 +664,12 @@ void main() {
'a|web/test.html._buildLogs.1':
'[{'
'"level":"Warning",'
- '"message":${JSON.encode(usePolymerHtmlMessage(0))},'
+ '"message":${JSON.encode(const HtmlEscape().convert(
+ usePolymerHtmlMessage(0)))},'
'"span":{'
'"location":"web/test.html:2:1",'
'"text":'
- '"${new HtmlEscape().convert('<polymer-element name="x-a">')}"'
+ '"${const HtmlEscape().convert('<polymer-element name="x-a">')}"'
'}'
'}]',
}, [
« no previous file with comments | « pkg/polymer/test/build/import_inliner_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698