This test ensures beforeunload event fires exactly once in a subframe even if the frame was adopted to a frame that appears later in the tree.