Ticket #4294: 0002-Add-Gtk.ProgressBar-testcase.patch

File 0002-Add-Gtk.ProgressBar-testcase.patch, 1.0 KB (added by manuq, 11 years ago)

TestCase

  • new file tests/graphics/progress.py

    From 7c5e04b4f06fbfbfaffbfd99e801ed91e21f44bf Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 3 Dec 2012 11:44:53 -0300
    Subject: [PATCH toolkit 2/2] Add Gtk.ProgressBar testcase.
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     tests/graphics/progress.py | 20 ++++++++++++++++++++
     1 file changed, 20 insertions(+)
     create mode 100644 tests/graphics/progress.py
    
    diff --git a/tests/graphics/progress.py b/tests/graphics/progress.py
    new file mode 100644
    index 0000000..bc176a8
    - +  
     1from gi.repository import Gtk
     2
     3import common
     4
     5
     6test = common.Test()
     7test.show()
     8
     9box = Gtk.HBox()
     10test.pack_start(box, True, False, 10)
     11box.show()
     12
     13bar = Gtk.ProgressBar()
     14bar.set_fraction(0.5)
     15box.pack_start(bar, True, True, 10)
     16bar.show()
     17
     18
     19if __name__ == '__main__':
     20    common.main(test)