ListAttributeTargetObserver is needlessly created even when there is no list attribute
[WebKit-https.git] / LayoutTests / http / tests / navigation / resources / document-location.js
1 function start() {
2   if (window.testRunner) {
3     var n = document.location.search.substring(1);
4     if (!n) {
5       // page just opened
6       testRunner.dumpBackForwardList();
7       testRunner.dumpAsText();
8       testRunner.waitUntilDone();
9
10       // Location changes need to happen outside the onload handler to generate history entries.
11       setTimeout(runTest, 0);
12     } else {
13       // loaded the ?1 navigation
14       testRunner.notifyDone();
15     }
16   }
17 }
18
19 function setLocation() {
20   document.location = "?1"
21 }
22