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

Side by Side Diff: test/data/input/mix_iterate_if_test.html

Issue 13592003: add support for template repeat (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: feedback Created 7 years, 8 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a 4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file. 5 BSD-style license that can be found in the LICENSE file.
6 --> 6 -->
7 <html lang="en"> 7 <html lang="en">
8 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
11 <script src="packages/web_ui/testing/testing.js"></script> 11 <script src="packages/web_ui/testing/testing.js"></script>
12 </head> 12 </head>
13 <body> 13 <body>
14 <!-- Tests the correct interaction of iteration and conditionals. --> 14 <!-- Tests the correct interaction of iteration and conditionals. -->
15 <table> 15 <table>
16 <tbody id='test' template iterate="row in table"> 16 <tbody id='test' template iterate="row in table">
17 <tr template iterate="cell in row"> 17 <tr template iterate="cell in row">
18 <td template if="cell != 0">{{cell}}</td> 18 <td template if="cell != 0">{{cell}}</td>
19 </tr> 19 </tr>
20 </tbody></table> 20 </tbody>
21 </table>
21 <script type="application/dart"> 22 <script type="application/dart">
22 import 'dart:async'; 23 import 'dart:async';
23 import 'dart:html'; 24 import 'dart:html';
24 import 'package:unittest/unittest.dart'; 25 import 'package:unittest/unittest.dart';
25 import 'package:web_ui/observe.dart'; 26 import 'package:web_ui/observe.dart';
26 27
27 @observable 28 @observable
28 List<List> table = toObservable([ 29 List<List> table = toObservable([
29 toObservable([1, 2, 3]), 30 toObservable([1, 2, 3]),
30 toObservable([4, 0, 5]), 31 toObservable([4, 0, 5]),
(...skipping 22 matching lines...) Expand all
53 expect(td.innerHtml, value.toString()); 54 expect(td.innerHtml, value.toString());
54 } 55 }
55 } 56 }
56 window.postMessage('done', '*'); 57 window.postMessage('done', '*');
57 }); 58 });
58 }); 59 });
59 } 60 }
60 </script> 61 </script>
61 </body> 62 </body>
62 </html> 63 </html>
OLDNEW
« no previous file with comments | « test/data/expected/repeat_attribute_test.html.txt ('k') | test/data/input/repeat_attribute_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698