]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7365 add tests
authorStas Vilchik <vilchiks@gmail.com>
Thu, 18 Feb 2016 13:32:28 +0000 (14:32 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 18 Feb 2016 16:22:01 +0000 (17:22 +0100)
server/sonar-web/tests/components/source-viewer-test.js

index abdad6bcaefe0b79f590f9f656f870b8712a2e78..1a8219e6032f05c3ff965f0fd1d84f57197a0db0 100644 (file)
@@ -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);
+    });
   });
 });