| Index: tests/lib_strong/html/custom/attribute_changed_callback_test.dart
|
| diff --git a/tests/lib_strong/html/custom/attribute_changed_callback_test.dart b/tests/lib_strong/html/custom/attribute_changed_callback_test.dart
|
| index d0c0e322e2a97564f915748cd21c09a7b28d414e..223408fda3a0d8cde469d22c12fd6c60acc70746 100644
|
| --- a/tests/lib_strong/html/custom/attribute_changed_callback_test.dart
|
| +++ b/tests/lib_strong/html/custom/attribute_changed_callback_test.dart
|
| @@ -33,7 +33,7 @@ class B extends HtmlElement {
|
| static var invocations = [];
|
|
|
| Completer completer;
|
| -
|
| +
|
| void attributeChanged(name, oldValue, newValue) {
|
| invocations.add('$name: $oldValue => $newValue');
|
| if (completer != null) {
|
| @@ -57,12 +57,12 @@ main() {
|
|
|
| var registered = false;
|
| setUp(() => customElementsReady.then((_) {
|
| - if (!registered) {
|
| - registered = true;
|
| - document.registerElement(A.tag, A);
|
| - document.registerElement(B.tag, B);
|
| - }
|
| - }));
|
| + if (!registered) {
|
| + registered = true;
|
| + document.registerElement(A.tag, A);
|
| + document.registerElement(B.tag, B);
|
| + }
|
| + }));
|
|
|
| group('fully_supported', () {
|
| test('transfer attribute changed callback', () {
|
| @@ -100,20 +100,18 @@ main() {
|
| b.completer = completer;
|
| b.id = 'x';
|
| return completer.future
|
| - .then((_) => expect(B.invocations, ['created', 'id: null => x']))
|
| - .then((_) {
|
| - B.invocations = [];
|
| - var secondCompleter = new Completer();
|
| - b.completer = secondCompleter;
|
| - b.attributes.remove('id');
|
| - return secondCompleter.future;
|
| - })
|
| - .then((_) => expect(B.invocations, ['id: x => null']));
|
| + .then((_) => expect(B.invocations, ['created', 'id: null => x']))
|
| + .then((_) {
|
| + B.invocations = [];
|
| + var secondCompleter = new Completer();
|
| + b.completer = secondCompleter;
|
| + b.attributes.remove('id');
|
| + return secondCompleter.future;
|
| + }).then((_) => expect(B.invocations, ['id: x => null']));
|
| });
|
| });
|
|
|
| group('unsupported_on_polyfill', () {
|
| -
|
| // If these tests start passing, don't remove the status suppression. Move
|
| // the tests to the fullYy_supported group.
|
|
|
|
|