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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/context-menu-leak-document.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 <!DOCTYPE html>
2 <html>
3 <body>
4 <script id='targetHTML' type='text/html'>
5 <div id="target" contentEditable style='width:100px; height:100px;'></di v>
6 </script>
7
8 <script id='targetJS' type='text/html'>
9 var target = document.getElementById('target');
10 var x = target.offsetParent.offsetLeft + target.offsetLeft + 5;
11 var y = target.offsetParent.offsetTop + target.offsetTop + target.offset Height / 2;
12 eventSender.mouseMoveTo(x, y);
13 eventSender.contextClick();
14 </script>
15
16 <script src="../resources/js-test.js"></script>
17 <script src="../resources/leak-check.js"></script>
18 <script>
19 var target = grabScriptText('targetHTML')+
20 '<script>'+grabScriptText('targetJS')+'<'+'/script>';
21 var tolerance = {'numberOfLiveDocuments': 0};
22
23 doLeakTest(htmlToUrl(target), tolerance);
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698