Index: tests/html/postmessage_structured_test.dart |
diff --git a/tests/html/postmessage_structured_test.dart b/tests/html/postmessage_structured_test.dart |
index e56e3b1fd5edf93387499cb35fd8bd3ddf9ac1fa..0ff9665333e4e693e16beae4ee6389b03dbba6df 100644 |
--- a/tests/html/postmessage_structured_test.dart |
+++ b/tests/html/postmessage_structured_test.dart |
@@ -14,7 +14,7 @@ injectSource(code) { |
final script = new ScriptElement(); |
script.type = 'text/javascript'; |
script.innerHtml = code; |
- document.body.nodes.add(script); |
+ document.body.append(script); |
} |
main() { |