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

Side by Side Diff: pkg/polymer/test/take_attributes_test.html

Issue 24149003: Port of github.com/polymer/polymer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 2 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
« no previous file with comments | « pkg/polymer/test/take_attributes_test.dart ('k') | pkg/polymer/test/utils_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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] }'>
67 </x-obj>
68 <x-obj id="obj2" values='{ "color": "Red" }'></x-obj>
69 <x-obj id="obj3"
70 values="{ 'movie': 'Buckaroo Banzai', 'DOB': '07/31/1978' }">
71 </x-obj>
72
73 <script type="application/dart" src="take_attributes_test.dart"></script>
74 </body>
75 </html>
OLDNEW
« no previous file with comments | « pkg/polymer/test/take_attributes_test.dart ('k') | pkg/polymer/test/utils_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698