Tests that Page.addScriptToEvaluateOnNewDocument is executed in the given world
<main world> in main frame
Adding scripts
Navigating
<main world> in main frame
world#0 in main frame
message from 0
world#1 in main frame
message from 1
world#2 in main frame
message from 2
world#3 in main frame
message from 3
world#4 in main frame
message from 4
added iframe
<main world> in subframe
world#0 in subframe
message from 0
world#1 in subframe
message from 1
world#2 in subframe
message from 2
world#3 in subframe
message from 3
world#4 in subframe
message from 4
written to iframe <head></head><body>hello</body>
added javascript iframe
<main world> in subframe
world#0 in subframe
message from 0
world#1 in subframe
message from 1
world#2 in subframe
message from 2
world#3 in subframe
message from 3
world#4 in subframe
message from 4
written to iframe <head></head><body>world</body>
Navigating cross-process
<main world> in main frame
world#0 in main frame
message from 0
world#1 in main frame
message from 1
world#2 in main frame
message from 2
world#3 in main frame
message from 3
world#4 in main frame
message from 4
Removing scripts
Navigating cross-process again
<main world> in main frame