summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/search
diff options
context:
space:
mode:
authorAlabĂȘ Duarte <aduarte@thoughtworks.com>2015-02-24 00:45:25 -0300
committerAlabĂȘ Duarte <aduarte@thoughtworks.com>2015-02-24 00:45:25 -0300
commitd9eaa6b9468dded7813e880291f5e4cc209ad0c6 (patch)
tree34d19504cdf4d1900deac40457120b05c18cc110 /web-ui/test/spec/search
parentf8df620a0df4c6bd8f6110067f74a79b3dd5840b (diff)
#192 - uses 'self' everywhere instead of 'this'
Diffstat (limited to 'web-ui/test/spec/search')
-rw-r--r--web-ui/test/spec/search/results_highlighter.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/test/spec/search/results_highlighter.spec.js b/web-ui/test/spec/search/results_highlighter.spec.js
index 1631cf01..c65a042b 100644
--- a/web-ui/test/spec/search/results_highlighter.spec.js
+++ b/web-ui/test/spec/search/results_highlighter.spec.js
@@ -7,9 +7,9 @@ describeComponent('search/results_highlighter', function () {
});
it('highlights only words that matches with the keywords given', function () {
- this.setupComponent('<div id="text">Any one seeing too many open bugs</div>');
+ self.setupComponent('<div id="text">Any one seeing too many open bugs</div>');
- this.component.attr = {keywords: ["any"]};
+ self.component.attr = {keywords: ["any"]};
self.component.highlightResults(event, {where: '#text'});
var highlightedWords = self.component.$node.find('.search-highlight').length;