diff --git a/tests/javascript/highlighter/spec.js b/tests/javascript/highlighter/spec.js
index a729400e141fd..c7455abcb9558 100644
--- a/tests/javascript/highlighter/spec.js
+++ b/tests/javascript/highlighter/spec.js
@@ -85,4 +85,14 @@ define(['jquery', 'testsRoot/highlighter/spec-setup', 'jasmineJquery'], function
expect($('#span-highlight')).not.toContainHtml('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('textarea');
+ });
+ });
});