mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 21:54:47 +08:00
This rewrites the following chrome-side test inspector-protocol/heap-profiler/heap-snapshot-merged-nodes.js as end-to-end test. The CL also introduces the necessary helpers to port the remaining tests to e2e tests. Bug: chromium:1110817 Change-Id: I5948a974d3300d7ae309793daaebec85f79d2f56 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2398821 Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
24 lines
552 B
HTML
24 lines
552 B
HTML
<!--
|
|
Copyright 2020 The Chromium Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
found in the LICENSE file.
|
|
-->
|
|
<h1>Memory Panel (Heap profiler) Test</h1>
|
|
<script>
|
|
class Retainer {
|
|
constructor(foo) {
|
|
this.foo = foo;
|
|
}
|
|
}
|
|
var retainer = null;
|
|
function run() {
|
|
function leaking() {
|
|
console.log('leaking');
|
|
}
|
|
var div = document.createElement('div');
|
|
div.addEventListener('click', leaking, true);
|
|
retainer = new Retainer(div);
|
|
}
|
|
run();
|
|
</script>
|