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

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

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 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
(Empty)
1 <!doctype html>
2 <!--
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
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.
6 -->
7 <html lang="en">
8 <head>
9 <meta charset="utf-8">
10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
11 <script type="application/javascript" src="testing.js"></script>
12 <style>x-greeter { display: block; }</style>
13 </head>
14 <body>
15 <element name="x-greeter" extends="div" constructor="Greeter">
16 <template>{{greeting}}, {{name}}!</template>
17 <script type='application/dart'>
18 import 'common.dart';
19 import 'package:web_components/web_components.dart';
20 class Greeter extends WebComponent {
21 String greeting, name;
22 }
23 </script>
24 </element>
25 <p>
26 This test has two loops, each over two items, for a total of four different
27 greeting messages:
28 </p>
29 <template iterate="g in greetings">
30 <template iterate="n in names">
31 <x-greeter data-value="greeting:g, name:n"></x-greeter>
32 </template>
33 </template>
34 <script type="application/dart">
35 import 'dart:html';
36 import 'package:unittest/unittest.dart';
37
38 var greetings = ['hello', 'hi'];
39 var names = ['world', 'universe'];
40 main() {
41 window.setTimeout(() {
42 expect(query('x-greeter').attributes, equals({}));
43 window.postMessage('done', '*');
44 }, 0);
45 }
46 </script>
47 </body>
48 </html>
OLDNEW
« no previous file with comments | « test/data/input/custom_radio_button_test.html ('k') | test/data/input/todomvc_listorder_shadowdom_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698