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

Side by Side Diff: utils/tests/template/test_complex.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/tests/template/sample.dart ('k') | utils/tests/template/test_complex2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Sample for complex templates: 1 // Sample for complex templates:
2 // 2 //
3 // top_searches_css.tmpl 3 // top_searches_css.tmpl
4 4
5 #import('dart:html'); 5 import 'dart:html';
6 #source('complex_datamodel.dart'); 6 part 'complex_datamodel.dart';
7 #source('top_searches.dart'); 7 part 'top_searches.dart';
8 8
9 void main() { 9 void main() {
10 List<Person> persons = dataModel; 10 List<Person> persons = dataModel;
11 11
12 Person whichPerson = persons[2]; 12 Person whichPerson = persons[2];
13 var searchesView = new TopSearches(whichPerson, whichPerson.searches); 13 var searchesView = new TopSearches(whichPerson, whichPerson.searches);
14 14
15 document.body.elements.add(searchesView.root); 15 document.body.elements.add(searchesView.root);
16 } 16 }
17 17
OLDNEW
« no previous file with comments | « utils/tests/template/sample.dart ('k') | utils/tests/template/test_complex2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698