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

Unified Diff: test/emitter_test.dart

Issue 11416259: fix #136, support watch exprs and two way bindings for component fields (Closed) Base URL: https://github.com/dart-lang/dart-web-components.git@master
Patch Set: Created 8 years, 1 month 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 | « test/data/input/todomvc_markdone_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/emitter_test.dart
diff --git a/test/emitter_test.dart b/test/emitter_test.dart
index 3d1c530129938918ccfac2e8574f7c42420e0555..9617406da3e7ebaf33be188a6f5c8bf2d6bd56eb 100644
--- a/test/emitter_test.dart
+++ b/test/emitter_test.dart
@@ -176,8 +176,7 @@ main() {
test('created', () {
var elem = parseSubtree('<div>{{bar}}</div>');
var emitter = new ContentFieldEmitter(analyzeElement(elem).children[0]);
- expect(_created(emitter),
- '__binding0 = autogenerated.nodeForBinding(bar);');
+ expect(_created(emitter), "__binding0 = new autogenerated.Text('');");
});
test('inserted', () {
@@ -260,7 +259,7 @@ main() {
var emitter = new AttributeEmitter(analyzeElement(elem));
expect(_inserted(emitter), equalsIgnoringWhitespace(
'__stoppers1.add(autogenerated.watchAndInvoke(() => '
- 'bar, (__e) { __e0.attributes["foo"] = __e.newValue; }));'));
+ "bar, (__e) { __e0.attributes['foo'] = __e.newValue; }));"));
});
test('inserted for 1-way binding with dom accessor', () {
@@ -284,7 +283,7 @@ main() {
var emitter = new AttributeEmitter(analyzeElement(elem));
expect(_inserted(emitter), equalsIgnoringWhitespace(
'__stoppers1.add(autogenerated.watchAndInvoke(() => bar, (__e) { '
- '__e0.attributes["data-foo"] = __e.newValue; }));'));
+ "__e0.attributes['data-foo'] = __e.newValue; }));"));
});
test('inserted for class', () {
« no previous file with comments | « test/data/input/todomvc_markdone_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698