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 var el1; | 6 var el1; |
7 var el2; | 7 var el2; |
8 function createDynamicElements() | 8 function createDynamicElements() |
9 { | 9 { |
10 var mainDoc = document; | 10 var mainDoc = document; |
(...skipping 11 matching lines...) Expand all Loading... |
22 frameDoc.body.appendChild(el2); | 22 frameDoc.body.appendChild(el2); |
23 } | 23 } |
24 | 24 |
25 function test() | 25 function test() |
26 { | 26 { |
27 //InspectorTest.selectNodeWithId("main-frame-div", step1); | 27 //InspectorTest.selectNodeWithId("main-frame-div", step1); |
28 InspectorTest.evaluateInPage("createDynamicElements()", step1); | 28 InspectorTest.evaluateInPage("createDynamicElements()", step1); |
29 | 29 |
30 function selectedNodeId() | 30 function selectedNodeId() |
31 { | 31 { |
32 var selectedElement = WebInspector.panels.elements.treeOutline.selectedT
reeElement; | 32 var selectedElement = InspectorTest.firstElementsTreeOutline().selectedT
reeElement; |
33 if (!selectedElement) | 33 if (!selectedElement) |
34 return "<no selected node>"; | 34 return "<no selected node>"; |
35 return selectedElement.representedObject.getAttribute("id"); | 35 return selectedElement.representedObject.getAttribute("id"); |
36 } | 36 } |
37 | 37 |
38 function step1() | 38 function step1() |
39 { | 39 { |
40 InspectorTest.evaluateInConsole("inspect(el1)", step2); | 40 InspectorTest.evaluateInConsole("inspect(el1)", step2); |
41 } | 41 } |
42 | 42 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 </head> | 75 </head> |
76 | 76 |
77 <body onload="runTest()"> | 77 <body onload="runTest()"> |
78 <p>Test that web inspector can select element in an iframe even if the element w
as created | 78 <p>Test that web inspector can select element in an iframe even if the element w
as created |
79 via <code>createElement</code> of <code>document</code> other than iframe's <cod
e>document</code>. | 79 via <code>createElement</code> of <code>document</code> other than iframe's <cod
e>document</code>. |
80 <a href="https://bugs.webkit.org/show_bug.cgi?id=60031">Bug 60031</a> | 80 <a href="https://bugs.webkit.org/show_bug.cgi?id=60031">Bug 60031</a> |
81 </p> | 81 </p> |
82 <iframe style="width:400px"></iframe> | 82 <iframe style="width:400px"></iframe> |
83 </body> | 83 </body> |
84 </html> | 84 </html> |
OLD | NEW |