Disable static value evaluation for visible expression when optimizations are turned off

This commit is contained in:
Jan
2022-01-01 16:59:27 +01:00
parent 64a1e4c176
commit 2df12e101e
2 changed files with 18 additions and 9 deletions

View File

@ -192,12 +192,8 @@ namespace test::game::iw4::menu::parsing::it
REQUIRE(menu->window.rect.vertAlign == 2);
REQUIRE(menu->window.style == 5);
REQUIRE(menu->visibleExp != nullptr);
REQUIRE(menu->visibleExp->entries != nullptr);
REQUIRE(menu->visibleExp->numEntries == 1);
REQUIRE(menu->visibleExp->entries[0].type == expressionEntryType::EET_OPERAND);
REQUIRE(menu->visibleExp->entries[0].data.operand.dataType == expDataType::VAL_INT);
REQUIRE(menu->visibleExp->entries[0].data.operand.internals.intVal > 0);
REQUIRE(menu->visibleExp == nullptr);
REQUIRE(menu->window.dynamicFlags[0] & WINDOW_FLAG_VISIBLE);
REQUIRE(menu->onOpen != nullptr);
REQUIRE(menu->onOpen->eventHandlerCount == 1);