| 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 function clickPseudo() | 6 function clickPseudo() |
| 7 { | 7 { |
| 8 if (!window.eventSender) { | 8 if (!window.eventSender) { |
| 9 console.log("This test requires test shell"); | 9 console.log("This test requires test shell"); |
| 10 return; | 10 return; |
| 11 } | 11 } |
| 12 eventSender.mouseMoveTo(2, 2); | 12 eventSender.mouseMoveTo(2, 2); |
| 13 eventSender.mouseDown(0); | 13 eventSender.mouseDown(0); |
| 14 eventSender.mouseUp(0); | 14 eventSender.mouseUp(0); |
| 15 } | 15 } |
| 16 | 16 |
| 17 function test() | 17 function test() |
| 18 { | 18 { |
| 19 WebInspector.domModel.setInspectModeEnabled(true, false, inspectModeEnabled.
bind(this)); | 19 InspectorTest.domModel.setInspectModeEnabled(true, false, inspectModeEnabled
.bind(this)); |
| 20 | 20 |
| 21 function inspectModeEnabled() | 21 function inspectModeEnabled() |
| 22 { | 22 { |
| 23 WebInspector.notifications.addEventListener(WebInspector.NotificationSer
vice.Events.SelectedNodeChanged, selectedNodeChanged, this); | 23 WebInspector.notifications.addEventListener(WebInspector.NotificationSer
vice.Events.SelectedNodeChanged, selectedNodeChanged, this); |
| 24 InspectorTest.evaluateInPage("clickPseudo()"); | 24 InspectorTest.evaluateInPage("clickPseudo()"); |
| 25 } | 25 } |
| 26 | 26 |
| 27 function selectedNodeChanged() | 27 function selectedNodeChanged() |
| 28 { | 28 { |
| 29 var selectedNode = InspectorTest.firstElementsTreeOutline().selectedDOMN
ode(); | 29 var selectedNode = InspectorTest.firstElementsTreeOutline().selectedDOMN
ode(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 45 #inspected::before { | 45 #inspected::before { |
| 46 content: "BEFORE" | 46 content: "BEFORE" |
| 47 } | 47 } |
| 48 </style> | 48 </style> |
| 49 </head> | 49 </head> |
| 50 | 50 |
| 51 <body onload="runTest()"> | 51 <body onload="runTest()"> |
| 52 <div id="inspected">Test</div> | 52 <div id="inspected">Test</div> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |