blob: 042903628717aceaaa8634f45601484b4b9dec29 [file] [log] [blame]
<html>
<head>
<meta charset="utf-8">
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
<script>
function getContent() {
var regx=new RegExp('&nbsp;','gi');
var a=document.body.innerHTML.replace(regx,' ');
var h='';
for(var i=0;i<a.length;i++) {
if (a.charCodeAt(i) != 32 && a.charCodeAt(i) != 0x0a) {
document.write("RegExp FAIL<p>");
return;
}
}
if (document.body.innerHTML.search("&nbsp;&nbsp;&nbsp;&nbsp;") < 0) {
document.write("innerHTML FAIL: <xmp>" + document.body.innerHTML + "</xmp>");
return;
}
document.write("PASS<p>");
}
</script>
</head>
<body onload="getContent()">&nbsp;&nbsp;  </body></html>