The girl is on trial at Swansea Crown Court.