Back to index

unity  6.0.0
Classes | Functions
unity.tests.test_hud Namespace Reference

Classes

class  HudTestsBase
class  HudBehaviorTests
class  HudLauncherInteractionsTests
class  HudLockedLauncherInteractionsTests
class  HudVisualTests
class  HudAlternativeKeybindingTests

Functions

def _make_monitor_scenarios

Function Documentation

Definition at line 29 of file test_hud.py.

00029 
00030 def _make_monitor_scenarios():
00031     num_monitors = ScreenGeometry().get_num_monitors()
00032     scenarios = []
00033 
00034     if num_monitors == 1:
00035         scenarios = [('Single Monitor', {'hud_monitor': 0})]
00036     else:
00037         for i in range(num_monitors):
00038             scenarios += [('Monitor %d' % (i), {'hud_monitor': i})]
00039 
00040     return scenarios
00041