Neither. Jane witnessed the accident . If you mean to say that she told her story about witnessing the accident in a court of law or other official venue you would say Jane testified to witnessing the accident or Jane testified that she witnessed the accident .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.