3 <script src=
"resources/console-clear-arguments-test.js"></script>
5 if (window
.testRunner
) {
6 testRunner
.waitUntilDone();
7 testRunner
.dumpAsText();
10 function removeIFrame()
12 var container
= document
.getElementById('container');
13 var child
= container
.firstChild
;
15 container
.removeChild(child
);
16 child
= container
.firstChild
;
18 dumpConsoleMessageArgumentCounts();
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
23 function createIFrame()
25 var iframe
= document
.createElement('iframe');
26 iframe
.setAttribute('src', 'resources/console-clear-arguments-iframe.html');
27 iframe
.onload
= removeIFrame
;
28 document
.getElementById('container').appendChild(iframe
);
33 <body onload=
"createIFrame()">
35 Tests that console message arguments will be cleared when iframe where the messages were
38 <div id=
"container"></div>
39 <div id=
"output"></div>