OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <!-- | |
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 | |
5 BSD-style license that can be found in the LICENSE file. | |
6 --> | |
7 <html> | |
8 <head> | |
9 <title>take attributes</title> | |
10 <script src="packages/polymer/boot.js"></script> | |
11 <script src="packages/unittest/test_controller.js"></script> | |
12 </head> | |
13 <body> | |
14 | |
15 <polymer-element name="x-foo"></polymer-element> | |
16 | |
17 <x-foo id="foo0" boolean="true"></x-foo> | |
18 <x-foo id="foo1" boolean="false"></x-foo> | |
19 <x-foo id="foo2" boolean></x-foo> | |
20 <x-foo id="foo3"></x-foo> | |
21 <x-foo id="foo4" boolean="squid"></x-foo> | |
22 <x-foo id="foo5" boolean="0"></x-foo> | |
23 | |
24 <polymer-element name="x-bar" attributes="boolean number str"> | |
25 </polymer-element> | |
26 | |
27 <x-bar id="bar0" boolean="true"></x-bar> | |
28 <x-bar id="bar1" boolean="false"></x-bar> | |
29 <x-bar id="bar2" boolean></x-bar> | |
30 <x-bar id="bar3"></x-bar> | |
31 <x-bar id="bar4" boolean="squid"></x-bar> | |
32 <x-bar id="bar5" boolean="0"></x-bar> | |
33 | |
34 <polymer-element name="x-zot" extends="x-bar" attributes="boolean"> | |
35 </polymer-element> | |
36 | |
37 <x-zot id="zot0" boolean="true"></x-zot> | |
38 <x-zot id="zot1" boolean="false"></x-zot> | |
39 <x-zot id="zot2" boolean></x-zot> | |
40 <x-zot id="zot3"></x-zot> | |
41 <x-zot id="zot4" boolean="squid"></x-zot> | |
42 <x-zot id="zot5" boolean="0"></x-zot> | |
43 <x-zot id="zot6" number="185"></x-zot> | |
44 | |
45 <polymer-element name="x-date" attributes="value"></polymer-element> | |
46 | |
47 <!-- | |
48 TODO(jmesserly): Dart note: I changed these to dash "-" instead of slash "/" | |
49 as the year-month-day separator. Also the form "December 25, 2014" is not | |
50 supported in Dart. | |
51 --> | |
52 <x-date id="date1" value="2014-12-25"></x-date> | |
53 <x-date id="date2" value="December 25, 2014"></x-date> | |
54 <x-date id="date3" value="2014-12-25 11:45"></x-date> | |
55 <x-date id="date4" value="2014-12-25 11:45:30"></x-date> | |
56 <x-date id="date5" value="2014-12-25 11:45:30:33"></x-date> | |
57 <x-date id="dated" value="2014-12-25T11:45:30:33"></x-date> | |
58 | |
59 <polymer-element name="x-array" attributes="values"></polymer-element> | |
60 | |
61 <x-array id="arr1" values="[0, 1, 2]"></x-array> | |
62 <x-array id="arr2" values="[33]"></x-array> | |
63 | |
64 <polymer-element name="x-obj" attributes="values"></polymer-element> | |
65 | |
66 <x-obj id="obj1" values='{ "name": "Brandon", "nums": [1, 22, 33] }'></x-obj > | |
67 <x-obj id="obj2" values='{ "color": "Red" }'></x-obj> | |
68 <x-obj id="obj3" values="{ 'movie': 'Buckaroo Banzai', 'DOB': '07/31/1978' } "></x-obj> | |
blois
2013/09/27 21:40:52
nit: line lengths
Jennifer Messerly
2013/09/30 17:44:37
Done.
| |
69 | |
70 <script type="application/dart" src="take_attributes_test.dart"></script> | |
71 </body> | |
72 </html> | |
OLD | NEW |