Exemple #1
0
 def test_cases(self):
     from xpra.server.window.video_subregion import scoreinout  #, sslog
     #sslog.enable_debug()
     r = rectangle.rectangle(35, 435, 194, 132)
     score = scoreinout(1200, 1024, r, 1466834, 21874694)
     assert score < 100
     r = rectangle.rectangle(100, 600, 320, 240)
     score = scoreinout(1200, 1024, r, 320 * 240 * 10, 320 * 240 * 25)
     assert score < 100
 def test_cases(self):
     from xpra.server.window.video_subregion import scoreinout   #, sslog
     from xpra.server.window.region import rectangle         #@UnresolvedImport
     #sslog.enable_debug()
     r = rectangle(35, 435, 194, 132)
     score = scoreinout(1200, 1024, r, 1466834, 21874694)
     assert score<100
     r = rectangle(100, 600, 320, 240)
     score = scoreinout(1200, 1024, r, 320*240*10, 320*240*25)
     assert score<100