Пример #1
0
 def test_minsize_custom(self):
     texpack.main("test/test_minsize_custom_", "test-sprites", "--min-size=4096")
Пример #2
0
 def test_layout_stack(self):
     texpack.main("test/test_layout_stack_", "test-sprites", "--layout=stack")
Пример #3
0
 def test_layout_skyline(self):
     texpack.main("test/test_layout_skyline_", "test-sprites", "--layout=skyline")
Пример #4
0
 def test_sort_area(self):
     texpack.main("test/test_sort_area_", "test-sprites", "--sort=area")
Пример #5
0
 def test_layout_default(self):
     with self.assertRaises(SystemExit): # "expected argument"
         texpack.main("test/test_layout_default_", "test-sprites", "--layout")
Пример #6
0
 def test_pad_default(self):
     texpack.main("test/test_pad_default_", "test-sprites", "--pad")
Пример #7
0
 def test_sort_width(self):
     texpack.main("test/test_sort_width_", "test-sprites", "--sort=width")
Пример #8
0
 def test_glob_gif(self):
     texpack.main("test/test_glob_gif_", "test-sprites/*.gif")
Пример #9
0
 def test_glob_jpg(self):
     texpack.main("test/test_glob_jpg_", "test-sprites/*.jpg")
Пример #10
0
 def test_compress(self):
     texpack.main("test/test_compress_", "test-sprites", "--compress")
Пример #11
0
 def test_dirs(self):
     texpack.main("test/test_dirs_", "test-sprites")
Пример #12
0
 def test_scale(self):
     texpack.main("test/test_scale_", "test-sprites", "--scale")
Пример #13
0
 def test_maxsize_custom(self):
     texpack.main("test/test_maxsize_custom_", "test-sprites", "--max-size=1024")
Пример #14
0
 def test_maxsize_default(self):
     with self.assertRaises(SystemExit): # "expected argument"
         texpack.main("test/test_maxsize_default_", "test-sprites", "--max-size")
Пример #15
0
 def test_extrude_default(self):
     texpack.main("test/test_extrude_default_", "test-sprites", "--extrude")
Пример #16
0
 def test_glob_noth_gif(self):
     texpack.main("test/test_glob_noth_gif_", "test-sprites/[!h]*.gif")
Пример #17
0
 def test_extrude_custom(self):
     texpack.main("test/test_extrude_custom_", "test-sprites", "--extrude=4")
Пример #18
0
 def test_mask_default(self):
     texpack.main("test/test_mask_default_", "test-sprites", "--mask")
Пример #19
0
 def test_pad_custom(self):
     texpack.main("test/test_pad_custom_", "test-sprites", "--pad=4")
Пример #20
0
 def test_mask_hexcode(self):
     texpack.main("test/test_mask_hexcode_", "test-sprites", "--mask=#fff")
Пример #21
0
 def test_sort_height(self):
     texpack.main("test/test_sort_height_", "test-sprites", "--sort=height")
Пример #22
0
 def test_mask_cssname(self):
     texpack.main("test/test_mask_cssname_", "test-sprites", "--mask=white")
Пример #23
0
 def test_sort_name(self):
     texpack.main("test/test_sort_name_", "test-sprites", "--sort=name")
Пример #24
0
 def test_trim(self):
     texpack.main("test/test_trim_", "test-sprites", "--trim")
Пример #25
0
 def test_layout_shelf(self):
     texpack.main("test/test_layout_shelf_", "test-sprites", "--layout=shelf")
Пример #26
0
 def test_alias_default(self):
     texpack.main("test/test_alias_default_", "test-sprites", "--alias")
Пример #27
0
 def test_layout_maxrects(self):
     texpack.main("test/test_layout_maxrects_", "test-sprites", "--layout=max-rects")
Пример #28
0
 def test_alias_custom(self):
     texpack.main("test/test_alias_custom_", "test-sprites", "--alias=0.5")
Пример #29
0
 def test_rotate(self):
     texpack.main("test/test_rotate_", "test-sprites", "--rotate")
Пример #30
0
 def test_square(self):
     texpack.main("test/test_square_", "test-sprites", "--square")