|
Lines 29-34
Link Here
|
| 29 |
string _test = nil; |
29 |
string _test = nil; |
| 30 |
|
30 |
|
| 31 |
/** |
31 |
/** |
|
|
32 |
* We do one automatic check whether _test should be set to testsuite. |
| 33 |
*/ |
| 34 |
boolean test_autochecked = false; |
| 35 |
|
| 36 |
/** |
| 32 |
* Current UI mode |
37 |
* Current UI mode |
| 33 |
*/ |
38 |
*/ |
| 34 |
string _ui = "dialog"; |
39 |
string _ui = "dialog"; |
|
Lines 119-124
Link Here
|
| 119 |
global string testMode () { |
124 |
global string testMode () { |
| 120 |
if (_test == nil) |
125 |
if (_test == nil) |
| 121 |
Initialize (); |
126 |
Initialize (); |
|
|
127 |
if (!test_autochecked) { |
| 128 |
// #243624 |
| 129 |
if (UI::GetDisplayInfo () == nil) { |
| 130 |
_test = "testsuite"; // testsuite runs with a dummy ui. |
| 131 |
} |
| 132 |
test_autochecked = true; |
| 133 |
} |
| 122 |
|
134 |
|
| 123 |
return _test; |
135 |
return _test; |
| 124 |
} |
136 |
} |