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

Side by Side Diff: LayoutTests/fast/events/message-port-gc-closed.html

Issue 211933008: Remove multiple GC calls and replace GCController.collect calls with GCController.collectAll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert change to worker-event-listener Created 6 years, 9 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 <body> 2 <body>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script> 4 <script>
5 jsTestIsAsync = true; 5 jsTestIsAsync = true;
6 description("MessagePorts (and their execution contexts) should be collected by GC once close() has been called on them"); 6 description("MessagePorts (and their execution contexts) should be collected by GC once close() has been called on them");
7 window.onmessage = function(evt) { 7 window.onmessage = function(evt) {
8 iframeDocGC = internals.observeGC(document.querySelector('iframe').contentDo cument); 8 iframeDocGC = internals.observeGC(document.querySelector('iframe').contentDo cument);
9 document.querySelector('iframe').remove(); 9 document.querySelector('iframe').remove();
10 gc(); 10 gc();
11 gc();
12 shouldBeTrue("iframeDocGC.wasCollected"); 11 shouldBeTrue("iframeDocGC.wasCollected");
13 finishJSTest(); 12 finishJSTest();
14 } 13 }
15 </script> 14 </script>
16 <iframe src="resources/message-port-gc-closed-iframe.html"></iframe> 15 <iframe src="resources/message-port-gc-closed-iframe.html"></iframe>
17 </body> 16 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698