Changeset 102076 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Nov 13, 2023 8:09:28 AM (17 months ago)
- svn:sync-xref-src-repo-rev:
- 160187
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r101444 r102076 5514 5514 cDesktopPixelsBlue += int(iBlue > iRed and iBlue > iGreen); 5515 5515 5516 fpRatioDesktop = cDesktopPixels / cPixels;5516 fpRatioDesktop = float(cDesktopPixels) / float(cPixels); 5517 5517 reporter.log2('Ratio of not too dark or bright pixels %.2f' % (fpRatioDesktop)); 5518 5518 5519 5519 if fpRatioDesktop > 0.1: 5520 fpRatioBlue = cDesktopPixelsBlue / cDesktopPixels;5520 fpRatioBlue = float(cDesktopPixelsBlue) / float(cDesktopPixels); 5521 5521 reporter.log2('Ratio of blue pixels %.2f ' % (fpRatioBlue)); 5522 5522 if fpRatioBlue > 0.5: … … 5538 5538 iWidth, iHeight, _, _, _, _ = oSession.o.console.display.getScreenResolution(iScreenId); 5539 5539 else: 5540 iWidth, iHeight, _, _, _ = oSession.o.console.display.getScreenResolution(iScreenId) 5540 iWidth, iHeight, _, _, _ = oSession.o.console.display.getScreenResolution(iScreenId); 5541 5541 5542 5542 aRGBData = oSession.o.console.display.takeScreenShotToArray(iScreenId, iWidth, iHeight,
Note:
See TracChangeset
for help on using the changeset viewer.