aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-18 14:32:28 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-18 17:22:01 +0100
commit0e59873873b2d7cac324dd814e5277611b86b1de (patch)
tree1a8a0db161ca01165983c58d0b6f977667cb0d1f /server
parentc096255c9f57d03a70e02fd99ba06e9e0d737fc3 (diff)
downloadsonarqube-0e59873873b2d7cac324dd814e5277611b86b1de.tar.gz
sonarqube-0e59873873b2d7cac324dd814e5277611b86b1de.zip
SONAR-7365 add tests
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/tests/components/source-viewer-test.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/sonar-web/tests/components/source-viewer-test.js b/server/sonar-web/tests/components/source-viewer-test.js
index abdad6bcaef..1a8219e6032 100644
--- a/server/sonar-web/tests/components/source-viewer-test.js
+++ b/server/sonar-web/tests/components/source-viewer-test.js
@@ -71,6 +71,20 @@ describe('Source Viewer', function () {
result = helper(code, []);
expect(result).to.equal('<span class="j">#include &lt;stdio.h&gt;</span>');
});
+
+ // TODO SONAR-7365
+ it.skip('should parse syntax and usage highlighting', function () {
+ var code = '<span class="k"><span class="sym-3 sym">this</span></span>',
+ result = helper(code, []);
+ expect(result).to.equal(code);
+ });
+
+ // TODO SONAR-7365
+ it.skip('should parse nested tags', function () {
+ var code = '<span class="k"><span class="sym-3 sym">this</span> is</span>',
+ result = helper(code, []);
+ expect(result).to.equal(code);
+ });
});
});