5 if (window
.layoutTestController
)
6 layoutTestController
.dumpAsText();
9 function getContent() {
10 var regx
=new RegExp(' ','gi');
11 var a
=document
.body
.innerHTML
.replace(regx
,' ');
13 for(var i
=0;i
<a
.length
;i
++) {
14 if (a
.charCodeAt(i
) != 32 && a
.charCodeAt(i
) != 0x0a) {
15 document
.write("RegExp FAIL<p>");
19 if (document
.body
.innerHTML
.search(" ") < 0) {
20 document
.write("innerHTML FAIL: <xmp>" + document
.body
.innerHTML
+ "</xmp>");
23 document
.write("PASS<p>");
27 <body onload=
"getContent()"> </body></html>