Chromium Code Reviews| Index: tests/html/contentelement_test.dart |
| diff --git a/tests/html/transferables_test.dart b/tests/html/contentelement_test.dart |
| similarity index 55% |
| copy from tests/html/transferables_test.dart |
| copy to tests/html/contentelement_test.dart |
| index 220852cc25ef0a01d6bd901fc7060ad27e684156..54d9a4fe2f7acd0bfea44b2c12110d33b746f542 100644 |
| --- a/tests/html/transferables_test.dart |
| +++ b/tests/html/contentelement_test.dart |
| @@ -2,7 +2,7 @@ |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| -#library('TransferableTest'); |
| +#library('contentelement_test'); |
| #import('../../pkg/unittest/unittest.dart'); |
| #import('../../pkg/unittest/html_config.dart'); |
| #import('dart:html'); |
| @@ -10,11 +10,8 @@ |
| main() { |
| useHtmlConfiguration(); |
| - test('TransferableTest', () { |
| - window.on.message.add(expectAsync1((messageEvent) { |
| - expect(messageEvent.data, new isInstanceOf<ArrayBuffer>()); |
| - })); |
| - final buffer = (new Float32Array(3)).buffer; |
| - window.postMessage(buffer, '*', [buffer]); |
| - }); |
| + test('constructor', () { |
| + var e = new ContentElement(); |
| + Expect.isTrue(e is ContentElement); |
|
Emily Fortuna
2012/09/25 17:39:22
Is there anything our test framework needs to writ
vsm
2012/09/25 17:40:37
Good point. Doesn't this work?
expect(e is Conte
blois
2012/09/25 22:19:56
Done.
|
| + }); |
| } |