| Index: packages/polymer/test/take_attributes_test.html
|
| diff --git a/packages/polymer/test/take_attributes_test.html b/packages/polymer/test/take_attributes_test.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..12ac0fcf68242704371f00f0519754bfcfd1ac43
|
| --- /dev/null
|
| +++ b/packages/polymer/test/take_attributes_test.html
|
| @@ -0,0 +1,76 @@
|
| +<!doctype html>
|
| +<!--
|
| +Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +for details. All rights reserved. Use of this source code is governed by a
|
| +BSD-style license that can be found in the LICENSE file.
|
| +-->
|
| +<html>
|
| + <head>
|
| +
|
| + <title>take attributes</title>
|
| + <link rel="import" href="packages/polymer/polymer.html">
|
| + <script src="packages/unittest/test_controller.js"></script>
|
| + </head>
|
| + <body unresolved>
|
| +
|
| + <polymer-element name="x-foo"></polymer-element>
|
| +
|
| + <x-foo id="foo0" boolean="true"></x-foo>
|
| + <x-foo id="foo1" boolean="false"></x-foo>
|
| + <x-foo id="foo2" boolean></x-foo>
|
| + <x-foo id="foo3"></x-foo>
|
| + <x-foo id="foo4" boolean="squid"></x-foo>
|
| + <x-foo id="foo5" boolean="0"></x-foo>
|
| +
|
| + <polymer-element name="x-bar" attributes="boolean number str">
|
| + </polymer-element>
|
| +
|
| + <x-bar id="bar0" boolean="true"></x-bar>
|
| + <x-bar id="bar1" boolean="false"></x-bar>
|
| + <x-bar id="bar2" boolean></x-bar>
|
| + <x-bar id="bar3"></x-bar>
|
| + <x-bar id="bar4" boolean="squid"></x-bar>
|
| + <x-bar id="bar5" boolean="0"></x-bar>
|
| +
|
| + <polymer-element name="x-zot" extends="x-bar" attributes="boolean">
|
| + </polymer-element>
|
| +
|
| + <x-zot id="zot0" boolean="true"></x-zot>
|
| + <x-zot id="zot1" boolean="false"></x-zot>
|
| + <x-zot id="zot2" boolean></x-zot>
|
| + <x-zot id="zot3"></x-zot>
|
| + <x-zot id="zot4" boolean="squid"></x-zot>
|
| + <x-zot id="zot5" boolean="0"></x-zot>
|
| + <x-zot id="zot6" number="185"></x-zot>
|
| +
|
| + <polymer-element name="x-date" attributes="value"></polymer-element>
|
| +
|
| + <!--
|
| + TODO(jmesserly): Dart note: I changed these to dash "-" instead of slash "/"
|
| + as the year-month-day separator. Also the form "December 25, 2014" is not
|
| + supported in Dart.
|
| + -->
|
| + <x-date id="date1" value="2014-12-25"></x-date>
|
| + <x-date id="date2" value="December 25, 2014"></x-date>
|
| + <x-date id="date3" value="2014-12-25 11:45"></x-date>
|
| + <x-date id="date4" value="2014-12-25 11:45:30"></x-date>
|
| + <x-date id="date5" value="2014-12-25 11:45:30:33"></x-date>
|
| + <x-date id="dated" value="2014-12-25T11:45:30:33"></x-date>
|
| +
|
| + <polymer-element name="x-array" attributes="values"></polymer-element>
|
| +
|
| + <x-array id="arr1" values="[0, 1, 2]"></x-array>
|
| + <x-array id="arr2" values="[33]"></x-array>
|
| +
|
| + <polymer-element name="x-obj" attributes="values"></polymer-element>
|
| +
|
| + <x-obj id="obj1" values='{ "name": "Brandon", "nums": [1, 22, 33] }'>
|
| + </x-obj>
|
| + <x-obj id="obj2" values='{ "color": "Red" }'></x-obj>
|
| + <x-obj id="obj3"
|
| + values="{ 'movie': 'Buckaroo Banzai', 'DOB': '07/31/1978' }">
|
| + </x-obj>
|
| +
|
| + <script type="application/dart" src="take_attributes_test.dart"></script>
|
| + </body>
|
| +</html>
|
|
|