Debian Codegraph @

testing/web-platform/tests/tools/wave/www/next.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="lib/wave-service.js"></script>
5 <script src="lib/screen-console.js"></script>
6 <script src="lib/query-parser.js"></script>
7 </head>
8 <body>
9 <p id="console" style="font-family: monospace;"></p>
10 <script>
11 var consoleElement = document.getElementById("console");
12 var screenConsole = new ScreenConsole(consoleElement);
13 var queryParameters = QueryParser.parseQuery();
14 var TOKEN = queryParameters["token"];
15 if (TOKEN)
16 document.cookie =
17 "resume_token=" + TOKEN + "; expires=Fri, 31 Dec 9999 23:59:59 GMT";
18
19 screenConsole.log("Loading next test ...");
20
21 WaveService.readNextTest(
22 TOKEN,
23 function (url) {
24 screenConsole.log("Redirecting to " + url);
25 location.href = url;
26 },
27 function () {
28 screenConsole.log("Connection failed.");
29 }
30 );
31 </script>
32 </body>
33 </html>