blob: 35924394d95878cece3d01a652e833009058a75a [file] [log] [blame]
<body>
<div>This tests find with queries that contain line breaks, for text broken into paragraphs using brs, divs, and preserved newlines.</div>
<div id="find">test<br>over<br>brs<br><div>test</div><div>over</div><div>divs</div><pre>test
over
newlines</pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (!document.execCommand("FindString", false, "test\nover\nbrs"))
document.body.innerText = "Find with line breaks failed over brs.";
if (!document.execCommand("FindString", false, "test\nover\ndivs"))
document.body.innerText = "Find with line breaks failed over divs.";
if (!document.execCommand("FindString", false, "test\nover\nnewlines"))
document.body.innerText = "Find with line breaks failed over newlines.";
</script>
</body>