Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsleyes
fsleyes-widgets
Commits
58029cea
Commit
58029cea
authored
Oct 21, 2018
by
Paul McCarthy
🚵
Browse files
TEST: Add code coverage for new features
parent
ea2c7203
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_imagepanel.py
View file @
58029cea
...
...
@@ -26,8 +26,12 @@ def _test_ImagePanel():
icon
=
wx
.
Bitmap
(
icon
,
wx
.
BITMAP_TYPE_PNG
)
icon
=
icon
.
ConvertToImage
()
frame
=
wx
.
GetApp
().
GetTopWindow
()
panel
=
ip
.
ImagePanel
(
frame
)
frame
=
wx
.
GetApp
().
GetTopWindow
()
panel
1
=
ip
.
ImagePanel
(
frame
)
wx
.
Yield
()
panel
.
SetImage
(
icon
)
panel1
.
SetImage
(
icon
)
wx
.
Yield
()
panel2
=
ip
.
ImagePanel
(
frame
,
preserveAspect
=
True
)
wx
.
Yield
()
panel2
.
SetImage
(
icon
)
wx
.
Yield
()
tests/test_notebook.py
View file @
58029cea
...
...
@@ -41,6 +41,7 @@ def _test_setColours():
notebook
.
AddPage
(
page1
,
'page1'
)
notebook
.
SetButtonColours
(
text
=
'#ffffff'
,
disabledText
=
'#d0d0d0'
,
default
=
'#000000'
,
selected
=
'#0000ff'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment