Skip to content

Commit

Permalink
added a test to unhighlight method
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirunilan committed Mar 26, 2017
1 parent fb114c2 commit 2aae985
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/javascript/highlighter/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,14 @@ define(['jquery', 'testsRoot/highlighter/spec-setup', 'jasmineJquery'], function
expect($('#span-highlight')).not.toContainHtml('<span rel="span" class="highlight">span</span>');
});
});

describe('unhighlight with input lying inside a textarea', function () {
beforeAll(function () {
highlighter.unhighlight("textarea");
});

it('Should not highlight the word textarea in the sample text inside textarea element', function () {
expect($('#txtarea-highlight')).not.toContainHtml('<span rel="textarea" class="highlight">textarea</span>');
});
});
});

0 comments on commit 2aae985

Please sign in to comment.