mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 21:54:47 +08:00
Replaces this layout test: https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/web_tests/inspector-protocol/heap-profiler/heap-snapshot-with-multiple-retainers.js. Bug: 1110817 Change-Id: I2e56235f07ee31b646df6c634885e5c302b33b42 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2409978 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
19 lines
517 B
HTML
19 lines
517 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>
|
|
function run() {
|
|
function leaking() {
|
|
console.log('leaking');
|
|
}
|
|
var div = document.createElement('div');
|
|
document.body.appendChild(div);
|
|
div.addEventListener('click', leaking, true);
|
|
document.body.addEventListener('click', leaking, true);
|
|
}
|
|
run();
|
|
</script>
|