| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <style> |
| 6 </style> |
| 7 <script> |
| 8 function injectStyleSheet() |
| 9 { |
| 10 var style = document.createElement('style'); |
| 11 style.textContent = '* {color: blue; }'; |
| 12 document.head.appendChild(style); |
| 13 } |
| 14 |
| 15 function test() |
| 16 { |
| 17 Promise.all([ |
| 18 UI.inspectorView.showPanel('sources'), |
| 19 InspectorTest.evaluateInPagePromise('injectStyleSheet()') |
| 20 ]).then(onInjected); |
| 21 |
| 22 function onInjected() |
| 23 { |
| 24 var sourcesNavigator = new Sources.SourcesNavigatorView(); |
| 25 InspectorTest.dumpNavigatorView(sourcesNavigator); |
| 26 InspectorTest.completeTest(); |
| 27 } |
| 28 } |
| 29 </script> |
| 30 </head> |
| 31 |
| 32 <body onload="runTest()"> |
| 33 <p>Verify that inline stylesheets do not appear in navigator.</p> |
| 34 </body> |
| 35 </html> |
| OLD | NEW |