chromium/chrome/test/data/extensions/api_test/automation/sites/add_remove_event_listeners.html

<!--
Copyright 2022 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<html>
  <head>
    <title>Automation Tests - Add Remove Event Listeners</title>
  </head>
  <body>
    <button id="remove">remove</button>
    <button id="close">close</button>
    <script>
      const removeButton = document.getElementById('remove');
      removeButton.addEventListener('click', () => {
          removeButton.remove();
      });

      const closeButton = document.getElementById('close');
      closeButton.addEventListener('click', () => {
        window.close();
      });
    </script>
  </body>
</html>