4a1c80cde0
BUG= R=kustermann@google.com Review URL: https://codereview.chromium.org//109893005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31021 260f80e4-7a28-3924-810f-c04153c831b5
76 lines
2.6 KiB
HTML
76 lines
2.6 KiB
HTML
<!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>
|
|
<!--polymer-test: this comment is needed for test_suite.dart-->
|
|
<title>take attributes</title>
|
|
<script src="/root_dart/tools/testing/dart/test_controller.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<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>
|