UTIL: added missing 'release-button' commands for the unittest

master
Martin Gerhardy 2022-05-02 18:14:48 +02:00
parent aabf843ad0
commit d913b116cd
1 changed files with 3 additions and 0 deletions

View File

@ -58,8 +58,11 @@ protected:
_xyz = _ctrlshiftmodcommand = _somecommand = _altmodcommand = _allmodscommand = _foo = _doubleLeftClick = false;
command::Command::shutdown();
command::Command::registerCommand("+bar", [] (const command::CmdArgs& args) {});
command::Command::registerCommand("-bar", [] (const command::CmdArgs& args) {});
command::Command::registerCommand("+foo", [this] (const command::CmdArgs& args) {this->_foo = true;});
command::Command::registerCommand("-foo", [this] (const command::CmdArgs& args) {this->_foo = false;});
command::Command::registerCommand("+xyz", [this] (const command::CmdArgs& args) {this->_xyz = true;});
command::Command::registerCommand("-xyz", [this] (const command::CmdArgs& args) {this->_xyz = false;});
command::Command::registerCommand("somecommand", [this] (const command::CmdArgs& args) {this->_somecommand = true;});
command::Command::registerCommand("altmodcommand", [this] (const command::CmdArgs& args) {this->_altmodcommand = true;});
command::Command::registerCommand("allmodscommand", [this] (const command::CmdArgs& args) {this->_allmodscommand = true;});