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

Side by Side Diff: pkg/polymer/test/prop_attr_bind_reflection_test.dart

Issue 44573005: Update polymer to commit b7200854b2441a22ce89f6563963f36c50f5150d (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async' show Completer;
6 import 'dart:html'; 5 import 'dart:html';
7 import 'package:unittest/unittest.dart'; 6 import 'package:unittest/unittest.dart';
8 import 'package:unittest/html_config.dart'; 7 import 'package:unittest/html_config.dart';
9 import 'package:polymer/polymer.dart'; 8 import 'package:polymer/polymer.dart';
10 9
11 @CustomTag('my-child-element') 10 @CustomTag('my-child-element')
12 class MyChildElement extends PolymerElement { 11 class MyChildElement extends PolymerElement {
13 @published int camelCase; 12 @published int camelCase;
14 @published int lowercase; 13 @published int lowercase;
15 14
(...skipping 19 matching lines...) Expand all
35 34
36 test('attribute reflected to property name', () { 35 test('attribute reflected to property name', () {
37 var child = query('my-element').shadowRoot.query('my-child-element'); 36 var child = query('my-element').shadowRoot.query('my-child-element');
38 expect(child.lowercase, 11); 37 expect(child.lowercase, 11);
39 expect(child.camelCase, 11); 38 expect(child.camelCase, 11);
40 39
41 expect('11', child.attributes['lowercase']); 40 expect('11', child.attributes['lowercase']);
42 expect('11', child.attributes['camelcase']); 41 expect('11', child.attributes['camelcase']);
43 }); 42 });
44 } 43 }
OLDNEW
« pkg/polymer/test/event_path_declarative_test.dart ('K') | « pkg/polymer/test/events_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698