OLD | NEW |
(Empty) | |
| 1 <head> |
| 2 <script src="../inspector-test.js"></script> |
| 3 <script src="./bindings-test.js"></script> |
| 4 |
| 5 <script> |
| 6 |
| 7 async function test() |
| 8 { |
| 9 var sourcesNavigator = new Sources.SourcesNavigatorView(); |
| 10 sourcesNavigator.show(UI.inspectorView.element); |
| 11 |
| 12 InspectorTest.markStep('dumpInitialNavigator'); |
| 13 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 14 |
| 15 InspectorTest.markStep('createIframes'); |
| 16 await Promise.all([ |
| 17 InspectorTest.attachFrame('frame1', './resources/magic-frame.html'), |
| 18 InspectorTest.attachFrame('frame2', './resources/magic-frame.html'), |
| 19 ]); |
| 20 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 21 |
| 22 InspectorTest.markStep('detachFrame1'); |
| 23 await InspectorTest.detachFrame('frame1'); |
| 24 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 25 |
| 26 InspectorTest.markStep('detachFrame2'); |
| 27 await InspectorTest.detachFrame('frame2'); |
| 28 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 29 |
| 30 InspectorTest.completeTest(); |
| 31 } |
| 32 |
| 33 </script> |
| 34 </head> |
| 35 <body onload="runTest()"> |
| 36 <p> |
| 37 Verify that navigator is properly rendered in case of multiple iframes. |
| 38 </p> |
| 39 </body> |
OLD | NEW |