Index: tests/html/events_test.dart |
diff --git a/tests/html/events_test.dart b/tests/html/events_test.dart |
index 4e22018b58a6e68e40f27bc245738fd1bbd1a7d4..8451c893d6363a04d452f576541e060cb3574ef7 100644 |
--- a/tests/html/events_test.dart |
+++ b/tests/html/events_test.dart |
@@ -29,7 +29,7 @@ main() { |
test('EventTarget', () { |
Element element = new Element.tag('test'); |
element.id = 'eventtarget'; |
- window.document.body.nodes.add(element); |
+ window.document.body.append(element); |
int invocationCounter = 0; |
void handler(Event e) { |