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

Unified Diff: pkg/polymer/test/instance_attrs_test.html

Issue 26395002: fix polymer copy-instance-attributes feature (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update pkg.status 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/instance_attrs_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/instance_attrs_test.html
diff --git a/pkg/polymer/test/attr_mustache_test.html b/pkg/polymer/test/instance_attrs_test.html
similarity index 53%
copy from pkg/polymer/test/attr_mustache_test.html
copy to pkg/polymer/test/instance_attrs_test.html
index df9f9ee1ad9b406614e9f42d10e735484711964f..180986179953f6c833ae6b4f5444f9475a187a7c 100644
--- a/pkg/polymer/test/attr_mustache_test.html
+++ b/pkg/polymer/test/instance_attrs_test.html
@@ -1,4 +1,4 @@
-<!doctype 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
@@ -6,22 +6,21 @@ BSD-style license that can be found in the LICENSE file.
-->
<html>
<head>
- <title>take attributes</title>
+ <title>Polymer.dart attribute deserialization test</title>
<script src="packages/polymer/boot.js"></script>
<script src="packages/unittest/test_controller.js"></script>
</head>
<body>
- <x-test id="test"></x-test>
-
- <polymer-element name="x-target" attributes="src">
- </polymer-element>
-
- <polymer-element name="x-test">
+ <polymer-element name="my-element" foo="123" bar="hi" baz="there" noscript>
<template>
- <x-target id="target" src="../{{src}}"></x-target>
+ foo: {{attributes['foo']}}
+ bar: {{attributes['bar']}}
+ baz: {{attributes['baz']}}
</template>
</polymer-element>
- <script type="application/dart" src="attr_mustache_test.dart"></script>
+ <my-element baz="world"></my-element>
+
+ <script type="application/dart" src="instance_attrs_test.dart"></script>
</body>
</html>
« no previous file with comments | « pkg/polymer/test/instance_attrs_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698