##// END OF EJS Templates
Simplify zoom test that show the bug
perrinel -
r1389:e107d05ceec4
parent child
Show More
@@ -82,21 +82,21 const auto AVAILABLE_OPERATIONS_DEFAULT_VALUE = QVariant::fromValue(
82 82 {FuzzingOperationType::DELETE, {0.0}}, // Delete operation is less frequent
83 83 {FuzzingOperationType::PAN_LEFT, {1.}},
84 84 {FuzzingOperationType::PAN_RIGHT, {1.}},
85 {FuzzingOperationType::ZOOM_IN, {1.}},
86 {FuzzingOperationType::ZOOM_OUT, {1.}},
85 {FuzzingOperationType::ZOOM_IN, {0.}},
86 {FuzzingOperationType::ZOOM_OUT, {0.}},
87 87 {FuzzingOperationType::SYNCHRONIZE, {4000.0}},
88 88 {FuzzingOperationType::DESYNCHRONIZE, {0.4}}});
89 89 const auto CACHE_TOLERANCE_DEFAULT_VALUE = 0.2;
90 90
91 91 /// Min/max delays between each operation (in ms)
92 const auto OPERATION_DELAY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(3000, 3000));
92 const auto OPERATION_DELAY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(20, 20));
93 93
94 94 /// Validators for the tests (executed in the order in which they're defined)
95 95 const auto VALIDATORS_DEFAULT_VALUE = QVariant::fromValue(
96 96 ValidatorsTypes{{FuzzingValidatorType::RANGE, FuzzingValidatorType::DATA}});
97 97
98 98 /// Min/max number of operations to execute before calling validation
99 const auto VALIDATION_FREQUENCY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(8, 8));
99 const auto VALIDATION_FREQUENCY_BOUNDS_DEFAULT_VALUE = QVariant::fromValue(std::make_pair(2, 2));
100 100
101 101
102 102 // /////// //////
@@ -214,22 +214,8 const QVariant CUSTOM_CASE_TWO =QVariant::fromValue(CustomVariablesOperations{{{
214 214 {{0, op(FuzzingOperationType::SYNCHRONIZE)}},
215 215 {{1, op(FuzzingOperationType::CREATE)}, true},
216 216 {{1, op(FuzzingOperationType::SYNCHRONIZE)}},
217 {{0, op(FuzzingOperationType::ZOOM_IN)}},
218 {{1, op(FuzzingOperationType::ZOOM_IN)}},
219 {{0, op(FuzzingOperationType::ZOOM_IN)}},
220 {{1, op(FuzzingOperationType::ZOOM_OUT)}},
221 {{0, op(FuzzingOperationType::ZOOM_OUT)}},
222 217 {{1, op(FuzzingOperationType::ZOOM_OUT)}},
223 {{0, op(FuzzingOperationType::ZOOM_IN)}},
224 {{1, op(FuzzingOperationType::ZOOM_OUT)}},
225 {{0, op(FuzzingOperationType::ZOOM_IN)}},
226 {{0, op(FuzzingOperationType::ZOOM_OUT)}},
227 {{1, op(FuzzingOperationType::ZOOM_IN)}},
228 {{0, op(FuzzingOperationType::ZOOM_IN)}},
229 {{0, op(FuzzingOperationType::ZOOM_OUT)}},
230 218 {{1, op(FuzzingOperationType::ZOOM_IN)}},
231 {{0, op(FuzzingOperationType::ZOOM_IN)}},
232 {{0, op(FuzzingOperationType::ZOOM_OUT)}},
233 219 });
234 220
235 221 // /////// //
@@ -478,7 +464,7 void TestAmdaFuzzing::testFuzzing_data()
478 464 // Test cases //
479 465 // ////////// //
480 466
481 auto maxRange = SqpRange::fromDateTime({2017, 1, 1}, {0, 0}, {2017, 1, 5}, {0, 0});
467 auto maxRange = SqpRange::fromDateTime({2017, 1, 3}, {0, 0}, {2017, 1, 5}, {0, 0});
482 468 MetadataPool metadataPool{{{"dataType", "vector"}, {"xml:id", "c1_b"}}};
483 469
484 470 // Note: we don't use auto here as we want to pass std::shared_ptr<IDataProvider> as is in the
@@ -500,7 +486,7 void TestAmdaFuzzing::testFuzzing_data()
500 486 {CUSTOM_OPERATIONS_PROPERTY, CUSTOM_CASE_TWO}};
501 487
502 488
503 // Fuzzing
489 //// Fuzzing
504 490 // QTest::newRow("fuzzingTest") << Properties{
505 491 // {MAX_RANGE_PROPERTY, QVariant::fromValue(maxRange)},
506 492 // {METADATA_POOL_PROPERTY, QVariant::fromValue(metadataPool)},
General Comments 0
You need to be logged in to leave comments. Login now