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

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

Issue 226393003: Correctly generate code when using transformers in polymer-expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/script_compactor_test.dart
diff --git a/pkg/polymer/test/build/script_compactor_test.dart b/pkg/polymer/test/build/script_compactor_test.dart
index 78888b6127cbc9b0e0a6b24765a543f610136e15..fa3ce335d7b0bb1077c5eaefe1d74aa3c27f19ce 100644
--- a/pkg/polymer/test/build/script_compactor_test.dart
+++ b/pkg/polymer/test/build/script_compactor_test.dart
@@ -305,6 +305,7 @@ codegenTests(phases) {
'<div data-attribute="{{anotherAttribute}}"></div>'
// input and custom-element attributes are treated as 2-way bindings:
'<input value="{{this.is.twoWay}}">'
+ '<input value="{{this.is.twoWayInt | intToStringTransformer}}">'
'<something-else my-attribute="{{here.too}}"></something-else>'
'<div on-click="{{methodName}}"></div>'
'<div on-click="{{@read.method}}"></div>'
@@ -331,6 +332,7 @@ codegenTests(phases) {
#anotherNode: (o) => o.anotherNode,
#attribute: (o) => o.attribute,
#here: (o) => o.here,
+ #intToStringTransformer: (o) => o.intToStringTransformer,
#is: (o) => o.is,
#method: (o) => o.method,
#methodName: (o) => o.methodName,
@@ -338,11 +340,13 @@ codegenTests(phases) {
#read: (o) => o.read,
#too: (o) => o.too,
#twoWay: (o) => o.twoWay,
+ #twoWayInt: (o) => o.twoWayInt,
#within: (o) => o.within,
},
setters: {
#too: (o, v) { o.too = v; },
#twoWay: (o, v) { o.twoWay = v; },
+ #twoWayInt: (o, v) { o.twoWayInt = v; },
},
names: {
#a: r'a',
@@ -351,6 +355,7 @@ codegenTests(phases) {
#anotherNode: r'anotherNode',
#attribute: r'attribute',
#here: r'here',
+ #intToStringTransformer: r'intToStringTransformer',
#is: r'is',
#method: r'method',
#methodName: r'methodName',
@@ -358,6 +363,7 @@ codegenTests(phases) {
#read: r'read',
#too: r'too',
#twoWay: r'twoWay',
+ #twoWayInt: r'twoWayInt',
#within: r'within',
}));
configureForDeployment([
« 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