LiblinphoneTester: automatic scrolling during tests

This commit is contained in:
Gautier Pelloux-Prayer 2015-09-28 14:33:56 +02:00
parent 84cf0eb968
commit 6f478ed9d3
2 changed files with 3 additions and 1 deletions

View file

@ -169,6 +169,7 @@ static NSString *const kAllTestsName = @"Run All tests";
LOGE(@"Test already in progress");
return;
}
in_progress = TRUE;
for (NSIndexPath *index in paths) {
TestItem *test = _tests[index.row];
@ -198,6 +199,7 @@ static NSString *const kAllTestsName = @"Run All tests";
LOGI(@"Test Passed!");
test.state = TestStatePassed;
}
[self.tableView scrollToRowAtIndexPath:index atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self updateItem:paths withAnimation:TRUE];
});

@ -1 +1 @@
Subproject commit 7cbbb6b17e4f1de3fa48f89c541092754f3455b4
Subproject commit f582965b14e8b777db47d52634ba518ec33cae23