Backed out 2 changesets (bug 1943998) for causing wd failures @ phases.py CLOSED...
[gecko.git] / devtools / client / netmonitor / test / html_pause-test-page.html
bloba093ae9c06413e093d643dcc8810b03d73ab7886
1 <!-- Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ -->
3 <!doctype html>
5 <html>
6 <head>
7 <meta charset="utf-8"/>
8 <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
9 <meta http-equiv="Pragma" content="no-cache" />
10 <meta http-equiv="Expires" content="0" />
11 <title>Network Monitor test page</title>
12 </head>
14 <body>
15 <p>Performing a custom number of GETs</p>
17 <script type="text/javascript">
18 /* exported performRequests */
19 "use strict";
21 function performRequests(url) {
22 return new Promise((resolve) => {
23 const xhr = new XMLHttpRequest();
24 xhr.open("GET", url, true);
25 xhr.onreadystatechange = function() {
26 if (this.readyState == this.DONE) {
27 resolve();
30 xhr.send(null);
31 });
33 </script>
34 </body>
36 </html>