コード例 #1
0
/**
* Calculate the progress for all of the images in a given directory
*/
function GetVisualProgress($testPath, $run, $cached, $options = null, $end = null, $startOffset = null)
{
    // TODO: in the long run this function might get redundant as the version below is more flexible
    $frames = null;
    $testPath = $testPath[0] == '.' || $testPath[0] == "/" ? $testPath : "./{$testPath}";
    $localPaths = new TestPaths($testPath, $run, $cached);
    $testInfo = GetTestInfo($testPath);
    $completed = IsTestRunComplete($run, $testInfo);
    return GetVisualProgressForStep($localPaths, $completed, $options, $end, $startOffset);
}
コード例 #2
0
 public function getVisualProgress($end = null)
 {
     // TODO: move implementation to this method
     if (!$this->fileHandler->dirExists($this->localPaths->videoDir())) {
         return array();
     }
     return GetVisualProgressForStep($this->localPaths, $this->testInfo->isRunComplete($this->run), null, $end, $this->getStartOffset());
 }