assertj / assertj/assertj-swing
Unable to find JFileChooserFixture on OSX
- Lingua principale
- Java
- Stelle
- 121
- Fork
- 52
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
_Issue by **[Clinton](http://jira.codehaus.org/secure/ViewProfile.jspa?name=clinton)** from Tue, 2 Feb 2010 05:40:03 -0600_
_Originally opened as http://jira.codehaus.org/browse/FEST-303_
---
Attempting to get a JFileChooserFixture from a FrameFixture fails on OSX:
// mainFrameFixture is a FrameFixture.
JFileChooserFixture jFileChooser = mainFrameFixture.fileChooser(); // Basically get a timeout waiting for the JFileChooser (even though it is present on the screen).When playing around, I tried specifying an incorrect dialog name
(mainFrameFixture.fileChooser("blah"); I get the following error
message on windows:
javax.swing.JDialog[name='dialog0', title='Open', enabled=true, modal=true, visible=true, showing=true]
javax.swing.JRootPane[]
javax.swing.JPanel[name='null.glassPane']
javax.swing.JLayeredPane[]
javax.swing.JPanel[name='null.contentPane']
org.project.views.ProjectFileChooser[name=null, dialogTitle=null, dialogType=OPEN_DIALOG, currentDirectory=C:\projects\other-samples, enabled=true, visible=true, showing=true]
sun.swing.WindowsPlacesBar[name=null]
javax.swing.JToggleButton[name=null,text='<html><center>My Recent Documents</center></html>', selected=false, enabled=true, visible=true, showing=true]
javax.swing.Box$Filler[,42,70,1x1,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]
javax.swing.JToggleButton[name=null,text='<html><center>Desktop</center></html>', selected=false, enabled=true, visible=true, showing=true]
javax.swing.Box$Filler[,42,140,1x1,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]
javax.swing.JToggleButton[name=null,text='<html><center>My Documents</center></html>', selected=false, enabled=true, visible=true, showing=true]
javax.swing.Box$Filler[,42,210,1x1,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]
javax.swing.JToggleButton[name=null, text='<html><center>My Computer</center></html>', selected=false, enabled=true, visible=true, showing=true]
javax.swing.Box$Filler[,42,280,1x1,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]
javax.swing.JToggleButton[name=null, text='<html><center>My Network Places</center></html>', selected=false, enabled=true, visible=true, showing=true]
javax.swing.JToolBar[name=null]
com.sun.java.swing.plaf.windows.WindowsFileChooserUI$1[name=null, text='Look in:', enabled=true, visible=true, showing=true]
javax.swing.Box$Filler[,86,13,8x0,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=]
com.sun.java.swing.plaf.windows.WindowsFileChooserUI$2[name=null, selectedItem=C:\projects\other-samples, contents=[...], editable=false, enabled=true, visible=true, showing=true]But when I run the same code on OSX it only reports the top level
jDialog:
javax.swing.JDialog[name='dialog0', title='Open', enabled=true,modal=true, visible=false, showing=false]
---
votes (original issue): 0
watches (original issue): 0
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Non sono indicati file sorgente o test. Riproduci la ricerca di JFileChooserFixture su OSX e confronta la gerarchia JDialog/componenti riportata con l’esempio Windows; il lavoro è completato quando FrameFixture.fileChooser() trova il selettore visibile su OSX invece di andare in timeout.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- desktop, testing
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100