| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <style> | 4 <style> |
| 5 | 5 |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 } | 8 } |
| 9 | 9 |
| 10 iframe { | 10 iframe { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 function onload() | 25 function onload() |
| 26 { | 26 { |
| 27 if (window.eventSender) | 27 if (window.eventSender) |
| 28 window.eventSender.setPageScaleFactor(2, 0, 0); | 28 window.eventSender.setPageScaleFactor(2, 0, 0); |
| 29 runTest(); | 29 runTest(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function test() | 32 function test() |
| 33 { | 33 { |
| 34 InspectorTest.firstElementsTreeOutline().addEventListener(WebInspector.Eleme
ntsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged, this); | 34 InspectorTest.dumpInspectorHighlightJSON("div", InspectorTest.completeTest.b
ind(InspectorTest), "scale-iframe"); |
| 35 | |
| 36 function selectedNodeChanged(event) | |
| 37 { | |
| 38 var node = event.data; | |
| 39 if (node.getAttribute("id") == "div") | |
| 40 InspectorTest.dumpInspectorHighlight(node, InspectorTest.completeTes
t.bind(InspectorTest)); | |
| 41 } | |
| 42 InspectorTest.evaluateInConsole("inspect(iframeDivElement)"); | |
| 43 } | 35 } |
| 44 | 36 |
| 45 </script> | 37 </script> |
| 46 </head> | 38 </head> |
| 47 | 39 |
| 48 <body onload="onload()"> | 40 <body onload="onload()"> |
| 49 <iframe src="resources/highlight-node-scaled-iframe.html"></iframe> | 41 <iframe id="scale-iframe" src="resources/highlight-node-scaled-iframe.html"></if
rame> |
| 50 </body> | 42 </body> |
| 51 </html> | 43 </html> |
| OLD | NEW |