mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-24813: IDLE: Add icon to help_about (#2335)
Patch by Cheryl Sabella
This commit is contained in:
parent
f87b85f808
commit
d352d68977
2 changed files with 19 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ from idlelib.idle_test.mock_idle import Func
|
|||
from idlelib.idle_test.mock_tk import Mbox_func
|
||||
from idlelib.help_about import AboutDialog as About
|
||||
from idlelib import textview
|
||||
import os.path
|
||||
|
||||
class LiveDialogTest(unittest.TestCase):
|
||||
"""Simulate user clicking buttons other than [Close].
|
||||
|
|
@ -33,6 +34,12 @@ class LiveDialogTest(unittest.TestCase):
|
|||
"""Test about dialog title"""
|
||||
self.assertEqual(self.dialog.title(), 'About IDLE')
|
||||
|
||||
def test_dialog_logo(self):
|
||||
"""Test about dialog logo."""
|
||||
path, file = os.path.split(self.dialog.icon_image['file'])
|
||||
fn, ext = os.path.splitext(file)
|
||||
self.assertEqual(fn, 'idle_48')
|
||||
|
||||
def test_printer_buttons(self):
|
||||
"""Test buttons whose commands use printer function."""
|
||||
dialog = self.dialog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue