To me it looks like she playfully wanted to startle/surprise/scare someone who was supposedly coming down the corridor, i.e. she expected someone to come but then nobody was there. It seems to me she would have had to know this person for at least a few hours, i.e. she spent some time with them...