Chromium Code Reviews| Index: tests/html/native_gc_test.dart |
| diff --git a/tests/html/native_gc_test.dart b/tests/html/native_gc_test.dart |
| index 1882c6e2e00f9de246ca696f61bce7b01f0bd4a0..d213336fb5044dc80c0c88b6794486ee613f6c73 100644 |
| --- a/tests/html/native_gc_test.dart |
| +++ b/tests/html/native_gc_test.dart |
| @@ -6,6 +6,11 @@ |
| main() { |
| useHtmlConfiguration(); |
| + Element testDiv = new DivElement(); |
| + testDiv.id = '#TestDiv'; |
| + document.body.nodes.add(testDiv); |
| + window.on.message.add((e) => testDiv.click()); |
| + |
| test('EventListener', () { |
| final int N = 1000000; |
| final int M = 1000; |
| @@ -30,4 +35,9 @@ main() { |
| final event = new Event('test'); |
| div.on['test'].dispatch(event); |
| }); |
| + |
| + test('WindowEventListener', () { |
| + testDiv.on.click.add(expectAsync1((e) {})); |
|
Anton Muhin
2012/07/06 15:06:15
isn't it too fragile to depend on the test order?
podivilov
2012/07/06 16:08:19
Done.
|
| + window.postMessage('test', '*'); |
| + }); |
| } |