@@ -82,21 +82,21 @@ def with_context_manager():
82
82
83
83
def regression_issue_128 ():
84
84
"""Regression test for issue #128: areas overlap."""
85
- area1 = {"top" : 50 , "left" : 7 , "width" : 400 , "height" : 320 , "mon" : 1 }
86
- area2 = {"top" : 200 , "left" : 200 , "width" : 320 , "height" : 320 , "mon" : 1 }
87
85
with mss () as sct :
86
+ area1 = {"top" : 50 , "left" : 7 , "width" : 400 , "height" : 320 , "mon" : 1 }
88
87
sct .grab (area1 )
88
+ area2 = {"top" : 200 , "left" : 200 , "width" : 320 , "height" : 320 , "mon" : 1 }
89
89
sct .grab (area2 )
90
90
91
91
92
92
def regression_issue_135 ():
93
93
"""Regression test for issue #135: multiple areas."""
94
- bounding_box_notes = {"top" : 0 , "left" : 0 , "width" : 100 , "height" : 100 }
95
- bounding_box_score = {"top" : 110 , "left" : 110 , "width" : 100 , "height" : 100 }
96
- bounding_box_test = {"top" : 220 , "left" : 220 , "width" : 100 , "height" : 100 }
97
94
with mss () as sct :
95
+ bounding_box_notes = {"top" : 0 , "left" : 0 , "width" : 100 , "height" : 100 }
98
96
sct .grab (bounding_box_notes )
97
+ bounding_box_test = {"top" : 220 , "left" : 220 , "width" : 100 , "height" : 100 }
99
98
sct .grab (bounding_box_test )
99
+ bounding_box_score = {"top" : 110 , "left" : 110 , "width" : 100 , "height" : 100 }
100
100
sct .grab (bounding_box_score )
101
101
102
102
0 commit comments