| <!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); |
| Scan_showMatch(id1); |
| Scan_next(); |
| var id2 = Scan_addMatch(4,9); |
| Scan_showMatch(id2); |
| Scan_next(); |
| var id3 = Scan_addMatch(9,12); |
| Scan_showMatch(id3); |
| |
| Scan_replaceMatch(id1,"FIRST"); |
| Scan_replaceMatch(id2,"SECOND"); |
| Scan_replaceMatch(id3,"THIRD"); |
| } |
| </script> |
| </head> |
| <body> |
| <p><u>Th</u>e quick brown</p> |
| <p>fox j<u>ump</u>s over</p> |
| <p>the lazy d<u>og</u></p> |
| </body> |
| </html> |