Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / spelling / spellcheck-queue-testrunner-leak-request.html
blob105be94d8a9c93371c8e6f7346b3c1ffc18ccbac
1 <!DOCTYPE html>
2 <html>
3 <body>
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" />
8 </script>
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);
18 target.focus();
19 document.execCommand("Paste");
20 target.blur();
22 </script>
24 <script src="../../resources/js-test.js"></script>
25 <script src="../../resources/leak-check.js"></script>
26 <script>
27 var target = grabScriptText('targetHTML')+'<script>'+grabScriptText('targetJS')+'<'+'/script>';
28 var tolerance = {'numberOfLiveDocuments': 0};
30 doLeakTest(htmlToUrl(target), tolerance);
31 </script>
32 </body>
33 </html>