From: simonbrandhof Date: Tue, 4 Jan 2011 09:05:18 +0000 (+0000) Subject: fix regression issue in violations drilldown: reload sources when selecting a new... X-Git-Tag: 2.6~197 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=66317361178778540508bcb8ac903aaef6dcb584;p=sonarqube.git fix regression issue in violations drilldown: reload sources when selecting a new file --- diff --git a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java index 137ad9f37eb..71f43a8d315 100644 --- a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java +++ b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java @@ -65,6 +65,8 @@ public class ViolationsViewer extends Page { mainPanel.setWidth("100%"); mainPanel.setStyleName("gwt-Violations"); + sourcePanel = null; // reload sources when selecting a new file + header = new Grid(1, 5); header.setWidth("100%"); header.setStylePrimaryName("gwt-ViewerHeader"); diff --git a/tests/integration/tests/src/test/selenium/SONAR-684-encode-violation-messages.html b/tests/integration/tests/src/test/selenium/SONAR-684-encode-violation-messages.html index 583b2473df4..12235c74470 100644 --- a/tests/integration/tests/src/test/selenium/SONAR-684-encode-violation-messages.html +++ b/tests/integration/tests/src/test/selenium/SONAR-684-encode-violation-messages.html @@ -32,11 +32,10 @@ glob:*Avoid Duplicate Literals* - assertText + waitForText pageselector glob:*The String literal "<select>" appears* -