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