]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5884 update coverage tooltips
authorStas Vilchik <vilchiks@gmail.com>
Thu, 5 Mar 2015 10:21:29 +0000 (11:21 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 5 Mar 2015 10:21:36 +0000 (11:21 +0100)
server/sonar-web/src/main/hbs/source-viewer/source-viewer-coverage-popup.hbs
server/sonar-web/src/main/js/source-viewer/popups/coverage-popup.js
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index cea9ae48f3c5c6bfb297c7b60fc0f0c05858cda5..df7cfc0388af37e8ed278669158ec6d44a750f62 100644 (file)
@@ -1,12 +1,12 @@
 <div class="bubble-popup-container">
   <div class="bubble-popup-title">
     {{#if row.lineHits}}
-      {{t 'source_viewer.covered'}}
+      {{t 'source_viewer' tests 'covered'}}
       {{#if row.conditions}}
         ({{default row.coveredConditions 0}} of {{row.conditions}} {{t 'source_viewer.conditions'}})
       {{/if}}
     {{else}}
-      {{t 'source_viewer.not_covered'}}
+      {{t 'source_viewer' tests 'not_covered'}}
       {{#if row.conditions}}
         ({{row.conditions}} {{t 'source_viewer.conditions'}})
       {{/if}}
index 593b9f1d1d14fdb3a6e2b80e3de7baa969fdc48d..96afb6ff4edd7e17d9b882ab71a3507d8abbbacb 100644 (file)
@@ -60,6 +60,7 @@ define([
       });
       return {
         testFiles: testFiles,
+        tests: this.options.tests,
         row: row
       };
     }
index 64dfc204c92b5c84bcda1f6a90733b2266b59777..b783bf27f13ad56eb400bfa83bca5eb5316c1427 100644 (file)
@@ -2895,8 +2895,10 @@ component_viewer.workspace.tooltip=Keeps track of history of navigation
 component_viewer.workspace.show_workspace=Show workspace
 component_viewer.workspace.hide_workspace=Hide workspace
 
-source_viewer.covered=Covered
-source_viewer.not_covered=Not covered
+source_viewer.ut.covered=Covered by unit tests
+source_viewer.ut.not_covered=Not covered by unit tests
+source_viewer.it.covered=Covered by integration tests
+source_viewer.it.not_covered=Not covered by integration tests
 source_viewer.conditions=conditions
 
 source_viewer.tooltip.duplicated_line=This line is duplicated. Click to see duplicated blocks.