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

Unified Diff: tests/html/transferables_test.dart

Issue 10441104: New expectation functions plus convert old tests to use these. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/messageevent_test.dart ('k') | tests/html/typed_arrays_range_checks_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/transferables_test.dart
===================================================================
--- tests/html/transferables_test.dart (revision 8345)
+++ tests/html/transferables_test.dart (working copy)
@@ -10,11 +10,10 @@
main() {
useHtmlConfiguration();
- asyncTest('TransferableTest', 1, () {
- window.on.message.add((messageEvent) {
- expect(messageEvent.data is ArrayBuffer).isTrue();
- callbackDone();
- });
+ test('TransferableTest', () {
+ window.on.message.add(expectAsync1((messageEvent) {
+ expect(messageEvent.data, new isInstanceOf<ArrayBuffer>());
+ }));
final buffer = (new Float32Array(3)).buffer;
window.webkitPostMessage(buffer, '*', [buffer]);
});
« no previous file with comments | « tests/html/messageevent_test.dart ('k') | tests/html/typed_arrays_range_checks_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698