5 var d
= document
.getElementById('console');
6 d
.appendChild(document
.createTextNode(str
));
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
13 var str
= window
.location
.href
;
15 if (str
.substr(0, 17) == 'file://localhost/' ||
16 str
.substr(0, 8) == 'file:///')
19 debug('FAILURE. String is ' + str
);
23 <body onload=
"runTests();">
24 This tests that window.location.href serializes file urls correctly. If the test is successful, the text
"SUCCESS" should be shown below.