LCOV - code coverage report
Current view: top level - pkg/playground - exception.js Coverage Total Hit
Test: cockpit Lines: 100.0 % 11 11
Test Date: 2026-07-02 14:11:36

            Line data    Source code
       1              : // SPDX-License-Identifier: LGPL-2.1-or-later
       2              : /* An unhandled javascript exception */
       3              : import '../lib/patternfly/patternfly-6-cockpit.scss';
       4            1 : import cockpit from "cockpit";
       5              : 
       6            1 : const button = document.getElementById("exception");
       7            1 : button.addEventListener("click", function() {
       8            1 :     const obj = { };
       9            1 :     window.setTimeout(function() {
      10            1 :         obj[0].value = 1;
      11            1 :     }, 0);
      12            1 : });
      13              : 
      14            1 : cockpit.transport.wait(function() {
      15            1 :     document.body.removeAttribute("hidden");
      16            1 : });
        

Generated by: LCOV version 2.0-1