Files
Nicolas Chevobbe da35303962 Bug 1599082 - [devtools] Remove external usage of static EventEmitter methods. r=devtools-reviewers,jdescottes.
Replace those with inheritance/decorations, extends classes that needed it.
Next patch in stack will remove the static methods alltogether.

Differential Revision: https://phabricator.services.mozilla.com/D267589
2025-10-07 05:37:53 +00:00

39 lines
946 B
HTML

<!DOCTYPE HTML>
<html>
<!--
Bug 1137527 - Test receiving GC events from the memory actor.
-->
<head>
<meta charset="utf-8">
<title>Memory monitoring actor test</title>
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
</head>
<body>
<pre id="test">
<script src="memory-helpers.js" type="application/javascript"></script>
<script>
"use strict";
window.onload = function() {
SimpleTest.waitForExplicitFinish();
(async function() {
const { memory, target } = await startServerAndGetSelectedTabMemory();
await memory.attach();
const onGcEvent = memory.once("garbage-collection");
memory.forceGarbageCollection();
const gcData = await onGcEvent;
ok(gcData, "Got GC data");
await memory.detach();
destroyServerAndFinish(target);
})();
};
</script>
</pre>
</body>
</html>