Author: fschumacher
Date: Sat Mar  9 10:00:01 2019
New Revision: 1855100

URL: http://svn.apache.org/viewvc?rev=1855100&view=rev
Log:
Bug 59896 - Report / Dashboard : Add a menu entry to generate a report on 
demand from a CSV file

There is a bug in the jdk on X11, that keeps the dialog on screen when 
setVisible(false) is called too early after
the dialog appeared on screen.

See https://bugs.openjdk.java.net/browse/JDK-5109571 for more information

It would probably be better to not show the dialog in the first place, when we 
are testing the component.

Relates to #453
Bugzilla Id: 59896


Modified:
    jmeter/trunk/test/src/org/apache/jmeter/gui/HtmlReportGUISpec.groovy

Modified: jmeter/trunk/test/src/org/apache/jmeter/gui/HtmlReportGUISpec.groovy
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/gui/HtmlReportGUISpec.groovy?rev=1855100&r1=1855099&r2=1855100&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/gui/HtmlReportGUISpec.groovy 
(original)
+++ jmeter/trunk/test/src/org/apache/jmeter/gui/HtmlReportGUISpec.groovy Sat 
Mar  9 10:00:01 2019
@@ -18,9 +18,6 @@
 
 package org.apache.jmeter.gui;
 
-import java.awt.event.ActionEvent;
-
-import org.apache.jmeter.gui.tree.JMeterCellRenderer
 import org.apache.jmeter.gui.tree.JMeterTreeListener
 import org.apache.jmeter.gui.tree.JMeterTreeModel
 import org.apache.jmeter.junit.spock.JMeterSpec
@@ -39,6 +36,7 @@ class HtmlReportGUISpec extends JMeterSp
             GuiPackage.getInstance().setMainFrame(new MainFrame(treeModel, 
treeListener));
         when:
             
htmlReportPanel.showInputDialog(GuiPackage.getInstance().getMainFrame())
+            Thread.sleep(50) // 
https://bugs.openjdk.java.net/browse/JDK-5109571
             htmlReportPanel.messageDialog.setVisible(false)
         then:
             "" == htmlReportPanel.csvFilePathTextField.getText()


Reply via email to