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