blob: 46f4412b289ae3855c9b0b9def9e86e5696f3523 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link href="../generic.css" rel="stylesheet"/>
<script src="ScanTests.js"></script>
<script>
function performTest()
{
Scan_reset();
Scan_next();
var id1 = Scan_addMatch(0,3);
var id2 = Scan_addMatch(10,15);
Scan_showMatch(id1);
Scan_showMatch(id2);
Scan_next();
var id3 = Scan_addMatch(0,3);
var id4 = Scan_addMatch(10,14);
Scan_showMatch(id3);
Scan_showMatch(id4);
Scan_next();
var id5 = Scan_addMatch(0,3);
var id6 = Scan_addMatch(9,12);
Scan_showMatch(id5);
Scan_showMatch(id6);
Scan_replaceMatch(id1,"FIRST");
Scan_replaceMatch(id2,"SECOND");
Scan_replaceMatch(id3,"THIRD");
Scan_replaceMatch(id4,"FOURTH");
Scan_replaceMatch(id5,"FIFTH");
Scan_replaceMatch(id6,"SIXTH");
}
</script>
</head>
<body>
<p>The quick brown</p>
<p>fox jumps over</p>
<p>the lazy dog</p>
</body>
</html>