summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/doc-frames-async.html
blob: e17498ecfdb5e4aa55dd96b6134ab452c3c81c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!-- This Source Code Form is subject to the terms of the Mozilla Public
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
  <head>
    <title>Frames</title>
  </head>

  <body>
    <script>
      async function sleep() {
        await new Promise(r => setTimeout(r, 10));
        debugger;
      }

      async function main() {
        await sleep();
      }
    </script>
  </body>
</html>