4 <script id='targetHTML' type='text/html'
>
5 <div id=
"target" contentEditable style='width:
100px; height:
100px;'
></div>
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.offsetHeight /
2;
12 eventSender.mouseMoveTo(x, y);
13 eventSender.contextClick();
16 <script src=
"../resources/js-test.js"></script>
17 <script src=
"../resources/leak-check.js"></script>
19 var target
= grabScriptText('targetHTML')+
20 '<script>'+grabScriptText('targetJS')+'<'+'/script>';
21 var tolerance
= {'numberOfLiveDocuments': 0};
23 doLeakTest(htmlToUrl(target
), tolerance
);