A man beat his partner and may have slept while she died on the floor next to his bed, a court has heard.