| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 | 9 |
| 10 InspectorTest.runTestSuite([ | 10 InspectorTest.runTestSuite([ |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 </head> | 108 </head> |
| 109 | 109 |
| 110 <body onload="runTest()"> | 110 <body onload="runTest()"> |
| 111 <p> | 111 <p> |
| 112 Tests that elements panel preserves selected shadow DOM node on page refresh. | 112 Tests that elements panel preserves selected shadow DOM node on page refresh. |
| 113 </p> | 113 </p> |
| 114 <span id="hostElement"></span><span id="closedHostElement"></span> | 114 <span id="hostElement"></span><span id="closedHostElement"></span> |
| 115 <script> | 115 <script> |
| 116 var root = document.getElementById("hostElement").createShadowRoot(); | 116 var root = document.getElementById("hostElement").createShadowRoot(); |
| 117 root.innerHTML = "<input type='text'>"; | 117 root.innerHTML = "<input type='text'>"; |
| 118 var closedRoot = document.getElementById("closedHostElement").createShadowRoot({
mode: 'closed'}); | 118 var closedRoot = document.getElementById("closedHostElement").attachShadow({mode
: 'closed'}); |
| 119 closedRoot.innerHTML = "<button></button>"; | 119 closedRoot.innerHTML = "<button></button>"; |
| 120 </script> | 120 </script> |
| 121 </body> | 121 </body> |
| 122 </html> | 122 </html> |
| OLD | NEW |