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

Side by Side Diff: LayoutTests/fast/dom/document-softleak-mouse-navigation.html

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. Created 6 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 | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <iframe id="target"></iframe> 4 <iframe id="target"></iframe>
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 <script src="../../resources/leak-check.js"></script> 6 <script src="../../resources/leak-check.js"></script>
7 <script> 7 <script>
8 jsTestIsAsync = true; 8 jsTestIsAsync = true;
9 9
10 var countersBefore; 10 var countersBefore;
11 var iframe = document.getElementById("target"); 11 var iframe = document.getElementById("target");
12 12
13 function onAboutBlankLoad() { 13 function onAboutBlankLoad() {
14 setTimeout(function() { 14 getCounterValues(function (counters) {
15 countersBefore = getCounterValues(); 15 countersBefore = counters;
16 iframe.onload = null; 16 iframe.onload = null;
17 iframe.src = "resources/link.html"; 17 iframe.src = "resources/link.html";
18 }, 0); 18 });
19 } 19 }
20 20
21 function onDone() { 21 function onDone() {
22 setTimeout(function() { 22 getCounterValues(function (countersAfter) {
23 var countersAfter = getCounterValues();
24 compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0 }); 23 compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0 });
25 finishJSTest(); 24 finishJSTest();
26 }, 0); 25 });
27 } 26 }
28 27
29 iframe.onload = onAboutBlankLoad; 28 iframe.onload = onAboutBlankLoad;
30 iframe.src = "about:blank"; 29 iframe.src = "about:blank";
31 window.addEventListener("message", onDone, false); 30 window.addEventListener("message", onDone, false);
32 </script> 31 </script>
33 </body> 32 </body>
34 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698