Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: LayoutTests/editing/spelling/spellcheck-queue-testrunner-leak-request.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script id="targetHTML" type="text/html"> 4 <script id="targetHTML" type="text/html">
5 <div id="source">foo bar</div> 5 <div id="source">foo bar</div>
6 <input type="text" id="target0" /> 6 <input type="text" id="target0" />
7 <input type="text" id="target1" /> 7 <input type="text" id="target1" />
8 </script> 8 </script>
9 9
10 <script id="targetJS" type="text/html"> 10 <script id="targetJS" type="text/html">
11 internals.settings.setAsynchronousSpellCheckingEnabled(true); 11 internals.settings.setAsynchronousSpellCheckingEnabled(true);
12 12
13 window.getSelection().selectAllChildren(document.getElementById('source' )); 13 window.getSelection().selectAllChildren(document.getElementById('source' ));
14 document.execCommand("Copy"); 14 document.execCommand("Copy");
15 15
16 for (var i = 0; i < 2; ++i) { 16 for (var i = 0; i < 2; ++i) {
17 var target = document.getElementById('target'+i); 17 var target = document.getElementById('target'+i);
18 target.focus(); 18 target.focus();
19 document.execCommand("Paste"); 19 document.execCommand("Paste");
20 target.blur(); 20 target.blur();
21 } 21 }
22 </script> 22 </script>
23 23
24 <script src="../../fast/js/resources/js-test-pre.js"></script> 24 <script src="../../resources/js-test.js"></script>
25 <script src="../../fast/js/resources/leak-check.js"></script> 25 <script src="../../resources/leak-check.js"></script>
26 <script> 26 <script>
27 var target = grabScriptText('targetHTML')+'<script>'+grabScriptText('tar getJS')+'<'+'/script>'; 27 var target = grabScriptText('targetHTML')+'<script>'+grabScriptText('tar getJS')+'<'+'/script>';
28 var tolerance = {'numberOfLiveDocuments': 0}; 28 var tolerance = {'numberOfLiveDocuments': 0};
29 29
30 doLeakTest(htmlToUrl(target), tolerance); 30 doLeakTest(htmlToUrl(target), tolerance);
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/spelling/spellcheck-queue.html ('k') | LayoutTests/editing/spelling/spellcheck-sequencenum.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698