6 testRunner
.dumpAsText();
9 "http://example.com/foo/bar",
10 "HTTP://example.com/foo/bar",
11 "https://example.com/ttt?ggg",
12 "ftp://example.com/ttt?ggg",
13 "file:///home/abarth",
14 "data:text/html,<b>foo</b>"
17 window
.onload = function(e
)
19 for (var i
= 0; i
< cases
.length
; ++i
) {
20 var a
= document
.createElement('a');
22 a
.textContent
= 'Link';
23 document
.body
.appendChild(a
);
24 document
.body
.appendChild(document
.createElement('br'));
28 var elmts
= document
.getElementsByTagName('a');
29 for (var i
= 0; i
< elmts
.length
; ++i
)
30 s
+= elmts
[i
].href
+ ' => ' + elmts
[i
].origin
+ '\n';
32 var pre
= document
.createElement('pre');
34 document
.body
.appendChild(pre
);