Fix attribute_changed_callback_test to expect event delivery either synchronously or asynchronously

BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org//1060103002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44942 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
alanknight@google.com 2015-04-07 18:23:59 +00:00
parent a2d5aef265
commit 4adf68734b
2 changed files with 11 additions and 7 deletions

View file

@ -4,6 +4,7 @@
library attribute_changed_callback_test;
import 'dart:async';
import 'dart:html';
import 'dart:js' as js;
import 'package:unittest/html_individual_config.dart';
@ -90,11 +91,15 @@ main() {
var b = new B();
b.id = 'x';
expect(B.invocations, ['created', 'id: null => x']);
B.invocations = [];
b.attributes.remove('id');
expect(B.invocations, ['id: x => null']);
return new Future.delayed(new Duration(milliseconds: 1))
.then((_) => expect(B.invocations, ['created', 'id: null => x']))
.then((_) {
B.invocations = [];
b.attributes.remove('id');
})
.then((_) => new Future.delayed(new Duration(milliseconds: 1)))
.then((_) => expect(B.invocations, ['id: x => null']));
});
});

View file

@ -9,7 +9,6 @@ cross_frame_test: Skip # Test reloads itself. Issue 18558
[ $compiler == none && ($runtime == drt || $runtime == dartium || $runtime == ContentShellOnAndroid) ]
custom/attribute_changed_callback_test/unsupported_on_polyfill: Fail # Issue 18931 (Disabled for Chrome 35 roll)
custom/attribute_changed_callback_test/fully_supported: Fail # Issue 23107
form_data_test/functional: Skip # Issue 19726
indexeddb_1_test/functional: Skip # Issue 19512 (timing out)
indexeddb_4_test: Skip # Issue 19726
@ -38,7 +37,7 @@ storage_quota_test: Fail # Support for promises.
[ $compiler == dart2js && ($runtime == safari || $runtime == safarimobilesim || $runtime == ff || $ie) ]
custom/entered_left_view_test/viewless_document: Fail # Polyfill does not handle this
fontface_test: Fail # Fontface not supported on these.
custom/attribute_changed_callback_test/unsupported_on_polyfill: Fail # Polyfill does not supportfontface_test: Fail # Fontface not supported on these.
custom/attribute_changed_callback_test/unsupported_on_polyfill: Fail # Polyfill does not support
element_animate_test: Fail # Element.animate not supported on these browsers.
[ $compiler == none && $runtime == dartium && $system == macos]