2007-07-04 Matt Perry <mpComplete@gmail.com>
[WebKit-https.git] / LayoutTests / http / tests / navigation / resources / document-location.js
1 function start() {
2   if (window.layoutTestController) {
3     var n = document.location.search.substring(1);
4     if (!n) {
5       // page just opened
6       layoutTestController.dumpBackForwardList();
7       layoutTestController.dumpAsText();
8       layoutTestController.waitUntilDone();
9
10       runTest();
11     } else {
12       // loaded the ?1 navigation
13       layoutTestController.notifyDone();
14     }
15   }
16 }
17
18 function setLocation() {
19   document.location = "?1"
20 }
21