()
| 9 | |
| 10 | let currentInspector: InspectorCommands & InspectorEvents; |
| 11 | function getTestInspector(): InspectorCommands & InspectorEvents { |
| 12 | let inspector = { |
| 13 | getDocument(): any { |
| 14 | return {}; |
| 15 | }, |
| 16 | removeNode(nodeId: number): void { |
| 17 | /* */ |
| 18 | }, |
| 19 | getComputedStylesForNode(nodeId: number): any { |
| 20 | return []; |
| 21 | }, |
| 22 | setAttributeAsText(nodeId: number, text: string, name: string): void { |
| 23 | /* */ |
| 24 | }, |
| 25 | |
| 26 | childNodeInserted(parentId: number, lastId: number, node: string | DOMNode): void { |
| 27 | /* to be replaced */ |
| 28 | }, |
| 29 | childNodeRemoved(parentId: number, nodeId: number): void { |
| 30 | /* to be replaced */ |
| 31 | }, |
| 32 | attributeModified(nodeId: number, attrName: string, attrValue: string) { |
| 33 | /* to be replaced */ |
| 34 | }, |
| 35 | attributeRemoved(nodeId: number, attrName: string) { |
| 36 | /* to be replaced */ |
| 37 | }, |
| 38 | }; |
| 39 | |
| 40 | attachDOMInspectorCommandCallbacks(inspector); |
| 41 | attachDOMInspectorEventCallbacks(inspector); |
| 42 | attachCSSInspectorCommandCallbacks(inspector); |
| 43 | |
| 44 | return inspector; |
| 45 | } |
| 46 | |
| 47 | function getIOSDOMInspector() { |
| 48 | return { |
no test coverage detected