예제 #1
0
def test_display():
    a = App()
    b = Box(a)
    display_test(b)
    a.destroy()
예제 #2
0
def test_size():
    a = App()
    t = Text(a)
    size_text_test(t)
    size_fill_test(t)
    a.destroy()
예제 #3
0
def test_cascaded_properties():
    a = App()
    t = Text(a, color=None, size=None, font=None)
    cascaded_properties_test(a, t, True)
    a.destroy()
예제 #4
0
def test_enable():
    a = App()
    t = Text(a)
    enable_test(t)
    a.destroy()
예제 #5
0
def test_text():
    a = App()
    # default values
    t = Text(a, color=None, size=None, font=None)
    text_test(t)
    a.destroy()
예제 #6
0
def test_events():
    a = App()
    w = Waffle(a)
    events_test(w)
    a.destroy()
예제 #7
0
def test_inherited_properties():
    a = App()
    inherited_properties_test(a, lambda: Waffle(a), False)
    a.destroy()
예제 #8
0
def test_clear():
    a = App()
    t = Text(a, text="foo")
    t.clear()
    assert t.value == ""
    a.destroy()
예제 #9
0
def test_append():
    a = App()
    t = Text(a, text="foo")
    t.append("bar")
    assert t.value == "foobar"
    a.destroy()
예제 #10
0
def test_cascaded_properties():
    a = App()
    t = Text(a)
    cascaded_properties_test(a, t, True)
    a.destroy()
예제 #11
0
def test_inherited_properties():
    a = App()
    inherited_properties_test(a, lambda: Text(a), True)
    a.destroy()
예제 #12
0
def test_text():
    a = App()
    t = Text(a)
    text_test(t)
    a.destroy()
예제 #13
0
def test_size():
    a = App()
    b = Box(a)
    size_pixel_test(b)
    size_fill_test(b)
    a.destroy()
예제 #14
0
def test_color():
    a = App()
    b = Box(a)
    color_test(b)
    a.destroy()
예제 #15
0
def test_display():
    a = App()
    w = Waffle(a)
    display_test(w)
    a.destroy()
예제 #16
0
def test_after_schedule():
    a = App()
    t = Text(a)
    schedule_after_test(a, t)
    a.destroy()
예제 #17
0
def test_color():
    a = App()
    w = Waffle(a)
    color_test(w)
    a.destroy()
예제 #18
0
def test_repeat_schedule():
    a = App()
    t = Text(a)
    schedule_repeat_test(a, t)
    a.destroy()
예제 #19
0
def test_cascaded_properties():
    a = App()
    w = Waffle(a)
    cascaded_properties_test(a, w, False)
    a.destroy()
예제 #20
0
def test_destroy():
    a = App()
    t = Text(a)
    destroy_test(t)
    a.destroy()
예제 #21
0
def test_auto_layout():
    a = App()
    w = Waffle(a)
    auto_layout_test(w, None)
    a.destroy()
예제 #22
0
def test_after_schedule():
    a = App()
    w = Waffle(a)
    schedule_after_test(a, w)
    a.destroy()
예제 #23
0
def test_display():
    a = App()
    t = Text(a)
    display_test(t)
    a.destroy()
예제 #24
0
def test_repeat_schedule():
    a = App()
    w = Waffle(a)
    schedule_repeat_test(a, w)
    a.destroy()
예제 #25
0
def test_color():
    a = App()
    t = Text(a)
    color_test(t)
    a.destroy()
예제 #26
0
def test_destroy():
    a = App()
    w = Waffle(a)
    destroy_test(w)
    a.destroy()
예제 #27
0
def test_events():
    a = App()
    t = Text(a)
    events_test(t)
    a.destroy()
예제 #28
0
def test_enable():
    a = App()
    w = Waffle(a)
    enable_test(w)
    a.destroy()
예제 #29
0
def test_inherited_properties():
    a = App()
    inherited_properties_test(
        a, lambda: Text(a, color=None, size=None, font=None), True)
    a.destroy()
예제 #30
0
def test_destroy():
    a = App()
    b = Box(a)
    destroy_test(b)
    a.destroy()