3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
7 function logToConsole()
9 var fragment
= document
.createDocumentFragment();
10 fragment
.appendChild(document
.createElement("p"));
12 console
.dirxml(document
);
13 console
.dirxml(fragment
);
14 console
.dirxml(fragment
.firstChild
);
15 console
.log([fragment
.firstChild
]);
16 console
.dirxml([document
, fragment
, document
.createElement("span")]);
21 runtime
.loadModulePromise("elements").then(function() {
22 InspectorTest
.evaluateInPage("logToConsole()", onLoggedToConsole
);
25 function onLoggedToConsole()
27 InspectorTest
.waitForRemoteObjectsConsoleMessages(onRemoteObjectsLoaded
)
30 function onRemoteObjectsLoaded()
32 InspectorTest
.dumpConsoleMessages();
33 InspectorTest
.completeTest();
39 <body onload=
"runTest()">
41 Tests that console logging dumps proper messages.