##// END OF EJS Templates
Update TestCosinusAcquisition to the new onRequestDataLoading API
perrinel -
r812:bec204429a95
parent child
Show More
@@ -165,8 +165,7 void TestCosinusAcquisition::testAcquisition()
165 QFETCH(std::vector<SqpRange>, operations);
165 QFETCH(std::vector<SqpRange>, operations);
166 for (const auto &operation : operations) {
166 for (const auto &operation : operations) {
167 // Asks request on the variable and waits during its execution
167 // Asks request on the variable and waits during its execution
168 sqpApp->variableController().onRequestDataLoading({variable}, operation, variable->range(),
168 sqpApp->variableController().onRequestDataLoading({variable}, operation, true);
169 true);
170
169
171 QTest::qWait(operationDelay);
170 QTest::qWait(operationDelay);
172 validateVariable(variable, operation);
171 validateVariable(variable, operation);
@@ -175,8 +174,7 void TestCosinusAcquisition::testAcquisition()
175
174
176 for (const auto &operation : operations) {
175 for (const auto &operation : operations) {
177 // Asks request on the variable and waits during its execution
176 // Asks request on the variable and waits during its execution
178 sqpApp->variableController().onRequestDataLoading({variable}, operation, variable->range(),
177 sqpApp->variableController().onRequestDataLoading({variable}, operation, true);
179 true);
180 }
178 }
181 QTest::qWait(operationDelay);
179 QTest::qWait(operationDelay);
182 validateVariable(variable, operations.back());
180 validateVariable(variable, operations.back());
General Comments 0
You need to be logged in to leave comments. Login now