| 1 | import pytest |
| 2 | |
| 3 | from pyglet import window |
| 4 | from tests.interactive.windowed_test_base import WindowedTestCase |
| 5 | |
| 6 | |
| 7 | @pytest.mark.requires_user_validation |
| 8 | class WindowStylesTest(WindowedTestCase): |
| 9 | """Test available window styles.""" |
| 10 | pass |
| 11 | |
| 12 | WindowStylesTest.create_test_case( |
| 13 | name='test_style_borderless', |
| 14 | description='Test that window style can be borderless.', |
| 15 | question='Do you see one borderless window?', |
| 16 | window_options={'style': window.Window.WINDOW_STYLE_BORDERLESS}, |
| 17 | take_screenshot=False |
| 18 | ) |
| 19 | |
| 20 | WindowStylesTest.create_test_case( |
| 21 | name='test_style_tool', |
| 22 | description='Test that window style can be tool.', |
| 23 | question='Do you see one tool-styled window?', |
| 24 | window_options={'style': window.Window.WINDOW_STYLE_TOOL}, |
| 25 | take_screenshot=False |
| 26 | ) |
| 27 | |
| 28 | WindowStylesTest.create_test_case( |
| 29 | name='test_style_dialog', |
| 30 | description='Test that window style can be dialog.', |
| 31 | question='Do you see one dialog-styled window?', |
| 32 | window_options={'style': window.Window.WINDOW_STYLE_DIALOG}, |
| 33 | take_screenshot=False |
| 34 | ) |
| 35 |