src_parser: extract loop for testing
tick: use $rootScope.$evalAsync