Improve js glue code in D1839/rP22909 (hotkey state fix) and deal with rebase leftovers.
The code could be improved by using more modern code.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D2295
Improve js glue code in D1839/rP22909 (hotkey state fix) and deal with rebase…
Description
Details
Event TimelineComment Actions Running cxxtest tests (326 tests)...........................ERROR: CCacheLoader failed to find archived or source file for: "gui/hotkey.xml" WARNING: JavaScript warning: Script value conversion check failed: v.isBoolean() (got type undefined) In TestGuiManager::test_hotkeysState: /path/to/trunk/source/gui/tests/test_GuiManager.h:96: Error: Expected (hotkey_pressed_value == true), found (false != true) WARNING: JavaScript warning: Script value conversion check failed: v.isBoolean() (got type undefined) /path/to/trunk/source/gui/tests/test_GuiManager.h:101: Error: Expected (hotkey_pressed_value == true), found (false != true) WARNING: JavaScript warning: Script value conversion check failed: v.isBoolean() (got type undefined) WARNING: JavaScript warning: Script value conversion check failed: v.isBoolean() (got type undefined) Index: binaries/data/mods/_test.gui/gui/hotkey/hotkey.xml =================================================================== --- binaries/data/mods/_test.gui/gui/hotkey/hotkey.xml (revision 22964) +++ binaries/data/mods/_test.gui/gui/hotkey/hotkey.xml (working copy) @@ -1,4 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <objects> - <script file="gui/hotkey.js"/> + <script file="gui/hotkey/hotkey.js"/> </objects> Index: binaries/data/mods/_test.gui/gui/hotkey/page_hotkey.xml =================================================================== --- binaries/data/mods/_test.gui/gui/hotkey/page_hotkey.xml (revision 22964) +++ binaries/data/mods/_test.gui/gui/hotkey/page_hotkey.xml (working copy) @@ -1,4 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <page> - <include>hotkey.xml</include> + <include>hotkey/hotkey.xml</include> </page> (Perhaps it would be good to test before committing) Comment Actions Erh, I did that change and tested it locally... I went wrong somewhere but not sure how. Further D2295 compiled with the broken change, so ???? Comment Actions The version I accepted worked but didn't move the folder, I assumed that could be done without another review. Comment Actions jenkins silently builded the changed code here: Comment Actions Jenkins was correct, the last revision uploaded was correct, the committed one didnt commit all files it seems. Comment Actions
The reason for the commit mess-up: |