This tests beforeunload event in subframes. You should see PASS below:
PASS
--------
Frame: '<!--frame1-->'
Child loaded.