File: test_backingstore.py

package info (click to toggle)
python-qwt 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,396 kB
  • sloc: python: 12,138; makefile: 19; sh: 10
file content (23 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-

SHOW = False  # Do not show test in GUI-based test launcher

from qwt.tests import utils
from qwt.tests.test_simple import SimplePlot


class BackingStorePlot(SimplePlot):
    TEST_EXPORT = False

    def __init__(self):
        SimplePlot.__init__(self)
        self.canvas().setPaintAttribute(self.canvas().BackingStore, True)


def test_backingstore():
    """Test for backing store"""
    utils.test_widget(BackingStorePlot, size=(600, 400))


if __name__ == "__main__":
    test_backingstore()