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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/take_attributes_test.html
diff --git a/pkg/polymer/test/take_attributes_test.html b/pkg/polymer/test/take_attributes_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..c65f6047dfe53cf09a9616a4e7539a4e1df175d9
--- /dev/null
+++ b/pkg/polymer/test/take_attributes_test.html
@@ -0,0 +1,75 @@
+<!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>
+ <script src="packages/polymer/boot.js"></script>
+ <script src="packages/unittest/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>
« 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