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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/leak-document-with-selection-inside.html

Issue 1964403002: Retire leak-check.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
OLDNEW
(Empty)
1 <html>
2 <body>
3 <script id='targetHTML' type='text/html'>
4 <span id='t'></span>
5 </script>
6 <script id='targetJS' type='text/html'>
7 var element = document.getElementById("t");
8 window.getSelection().collapse(element, 0);
9 </script>
10
11 <script src="../../resources/js-test.js"></script>
12 <script src="../../resources/leak-check.js"></script>
13 <script>
14 description("This test asserts that document doesn't leak when a selecti on is created inside the document.");
15
16 var target = grabScriptText('targetHTML') +
17 '<script>'+grabScriptText('targetJS')+'<'+'/script>';
18 var tolerance = {'numberOfLiveDocuments': 0};
19
20 doLeakTest(htmlToUrl(target), tolerance);
21 </script>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698