1 module( 'jquery.highlightText' );
3 test( '-- Initial check', function() {
5 ok( $.fn
.highlightText
, 'jQuery.fn.highlightText defined' );
8 test( 'Check', function() {
12 $fixture
= $( '<p>Blue Öyster Cult</p>' );
13 $fixture
.highlightText( 'Blue' );
15 '<span class="highlight">Blue</span> Öyster Cult',
19 $fixture
= $( '<p>Österreich</p>' );
20 $fixture
.highlightText( 'Österreich' );
22 '<span class="highlight">Österreich</span>',
27 * Highlighter broken on punctuation mark.
29 /** dont forget to update the value in expect() at the top!
30 $fixture = $( '<p>So good. To be there</p>' );
31 $fixture.highlightText( 'good' );
33 'So <span class="highlight">good</span>. To be there',