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

Side by Side Diff: pkg/polymer_expressions/test/globals_test.dart

Issue 335943003: merge to trunk all changes from 36817 until 37378 under the packages: polymer, (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 7
8 import 'package:observe/observe.dart'; 8 import 'package:observe/observe.dart';
9 import 'package:observe/mirrors_used.dart'; // make test smaller. 9 import 'package:observe/mirrors_used.dart'; // make test smaller.
10 import 'package:polymer_expressions/polymer_expressions.dart'; 10 import 'package:polymer_expressions/polymer_expressions.dart';
(...skipping 13 matching lines...) Expand all
24 <template repeat="{{entry in this | enumerate}}"> 24 <template repeat="{{entry in this | enumerate}}">
25 <div>Item {{ entry.index }} is {{ entry.value }}</div> 25 <div>Item {{ entry.index }} is {{ entry.value }}</div>
26 </template> 26 </template>
27 </template> 27 </template>
28 </div>'''); 28 </div>''');
29 TemplateBindExtension.bootstrap(testDiv); 29 TemplateBindExtension.bootstrap(testDiv);
30 document.body.nodes.add(testDiv); 30 document.body.nodes.add(testDiv);
31 }); 31 });
32 32
33 tearDown(() { 33 tearDown(() {
34 nodeBind(testDiv).unbindAll();
35 testDiv.remove(); 34 testDiv.remove();
36 testDiv = null; 35 testDiv = null;
37 }); 36 });
38 37
39 test('should enumerate item and index', () { 38 test('should enumerate item and index', () {
40 templateBind(testDiv.query('template')) 39 templateBind(testDiv.query('template'))
41 ..bindingDelegate = new PolymerExpressions() 40 ..bindingDelegate = new PolymerExpressions()
42 ..model = toObservable( 41 ..model = toObservable(
43 ['hello', 'from', 'polymer', 'expressions']); 42 ['hello', 'from', 'polymer', 'expressions']);
44 43
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 'Item 3 is a', 83 'Item 3 is a',
85 'Item 4 is b', 84 'Item 4 is b',
86 'Item 5 is e', 85 'Item 5 is e',
87 'Item 6 is c', 86 'Item 6 is c',
88 ]); 87 ]);
89 }); 88 });
90 }); 89 });
91 }); 90 });
92 }); 91 });
93 } 92 }
OLDNEW
« no previous file with comments | « pkg/polymer_expressions/test/eval_test.dart ('k') | pkg/polymer_expressions/test/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698