OLD | NEW |
(Empty) | |
| 1 (async function() { |
| 2 let {page, session, Protocol} = await InspectorTest.startBlank(''); |
| 3 |
| 4 Protocol.Page.enable(); |
| 5 session.evaluate(` |
| 6 var frame = document.createElement('iframe'); |
| 7 frame.src = '${InspectorTest.url('../resources/blank.html')}'; |
| 8 document.body.appendChild(frame); |
| 9 `); |
| 10 await Protocol.Page.onceFrameStartedLoading(); |
| 11 InspectorTest.log('Started loading'); |
| 12 await Protocol.Page.onceFrameStoppedLoading(); |
| 13 InspectorTest.log('Stopped loading'); |
| 14 InspectorTest.completeTest(); |
| 15 })(); |
OLD | NEW |