fixed frame's value not right when enter a frame
add timeline test
fixed crash when change test
add timeline frame event test
Merge pull request #7111 from 2youyouo2/v2

add test and fixed some bugs