4 <script id=
"targetHTML" type=
"text/html">
5 <div id=
"source">foo bar
</div>
6 <input type=
"text" id=
"target0" />
7 <input type=
"text" id=
"target1" />
10 <script id=
"targetJS" type=
"text/html">
11 internals.settings.setAsynchronousSpellCheckingEnabled(true);
13 window.getSelection().selectAllChildren(document.getElementById('source'));
14 document.execCommand(
"Copy");
16 for (var i =
0; i <
2; ++i) {
17 var target = document.getElementById('target'+i);
19 document.execCommand(
"Paste");
24 <script src=
"../../resources/js-test.js"></script>
25 <script src=
"../../resources/leak-check.js"></script>
27 var target
= grabScriptText('targetHTML')+'<script>'+grabScriptText('targetJS')+'<'+'/script>';
28 var tolerance
= {'numberOfLiveDocuments': 0};
30 doLeakTest(htmlToUrl(target
), tolerance
);