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

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

Issue 723393003: update to polymer js 0.5.1 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final tweaks Created 6 years 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'package:unittest/html_config.dart'; 8 import 'package:unittest/html_config.dart';
9 import 'package:polymer/polymer.dart'; 9 import 'package:polymer/polymer.dart';
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 expect(xbar.attributes['obj'], 'hi', reason: 169 expect(xbar.attributes['obj'], 'hi', reason:
170 'reflect property based on current type'); 170 'reflect property based on current type');
171 171
172 expect(xzot.str, 'str2'); 172 expect(xzot.str, 'str2');
173 expect(xzot.zot, 2); 173 expect(xzot.zot, 2);
174 xzot.str = 'hello'; 174 xzot.str = 'hello';
175 xzot.zot = 5; 175 xzot.zot = 5;
176 }).then((_) => onAttributeChange(xzot)).then((_) { 176 }).then((_) => onAttributeChange(xzot)).then((_) {
177 expect(xzot.attributes['str'], xzot.str); 177 expect(xzot.attributes['str'], xzot.str);
178 // TODO(jmesserly): the JS test seems backwards of the description text. 178 // TODO(jmesserly): the JS test seems backwards of the description text.
179 // Is it because it doesn't do "Platform.flush()"? 179 // Is it because it doesn't do "WebComponents.flush()"?
180 expect(xzot.attributes['zot'], '5', 180 expect(xzot.attributes['zot'], '5',
181 reason: 'extendee reflect false not honored'); 181 reason: 'extendee reflect false not honored');
182 }); 182 });
183 }); 183 });
184 }); 184 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698