File: test_window_styles.py

package info (click to toggle)
pyglet 2.0.17%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,560 kB
  • sloc: python: 80,579; xml: 50,988; ansic: 171; makefile: 146
file content (35 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import pytest

from pyglet import window
from tests.interactive.windowed_test_base import WindowedTestCase


@pytest.mark.requires_user_validation
class WindowStylesTest(WindowedTestCase):
    """Test available window styles."""
    pass

WindowStylesTest.create_test_case(
        name='test_style_borderless',
        description='Test that window style can be borderless.',
        question='Do you see one borderless window?',
        window_options={'style': window.Window.WINDOW_STYLE_BORDERLESS},
        take_screenshot=False
        )

WindowStylesTest.create_test_case(
        name='test_style_tool',
        description='Test that window style can be tool.',
        question='Do you see one tool-styled window?',
        window_options={'style': window.Window.WINDOW_STYLE_TOOL},
        take_screenshot=False
        )

WindowStylesTest.create_test_case(
        name='test_style_dialog',
        description='Test that window style can be dialog.',
        question='Do you see one dialog-styled window?',
        window_options={'style': window.Window.WINDOW_STYLE_DIALOG},
        take_screenshot=False
        )