| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |