| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 | 5 |
| 6 .float { | 6 .float { |
| 7 width: 8em; | 7 width: 8em; |
| 8 height: 8em; | 8 height: 8em; |
| 9 float: left; | 9 float: left; |
| 10 shape-margin: 2em; | 10 shape-margin: 2em; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 </style> | 59 </style> |
| 60 <script src="../../http/tests/inspector/inspector-test.js"></script> | 60 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 61 <script src="../../http/tests/inspector/elements-test.js"></script> | 61 <script src="../../http/tests/inspector/elements-test.js"></script> |
| 62 <script> | 62 <script> |
| 63 | 63 |
| 64 function test() | 64 function test() |
| 65 { | 65 { |
| 66 var list = ["circle", "insetSimpleRound", "insetComplexRound", "ellipse", "c
ontentBox", "polygon", "raster"]; | 66 var list = ["circle", "insetSimpleRound", "insetComplexRound", "ellipse", "c
ontentBox", "polygon", "raster"]; |
| 67 var index = 0; | 67 var index = 0; |
| 68 function selectNode() | 68 function nextNode() |
| 69 { | 69 { |
| 70 InspectorTest.selectNodeWithId(String(list[index++]), evaluate); | 70 var nodeId = String(list[index++]); |
| 71 InspectorTest.dumpInspectorHighlightJSON(nodeId, (index == list.length)
? InspectorTest.completeTest.bind(InspectorTest): nextNode); |
| 71 } | 72 } |
| 72 function evaluate(node) | 73 nextNode(); |
| 73 { | |
| 74 InspectorTest.dumpInspectorHighlightShape(node, (index == list.length)
? InspectorTest.completeTest.bind(InspectorTest): selectNode); | |
| 75 } | |
| 76 selectNode(); | |
| 77 } | 74 } |
| 78 | 75 |
| 79 </script> | 76 </script> |
| 80 </head> | 77 </head> |
| 81 | 78 |
| 82 <body onload="runTest()"> | 79 <body onload="runTest()"> |
| 83 <div class="float circle" id="circle"> </div> | 80 <div class="float circle" id="circle"> </div> |
| 84 <div class="float insetSimpleRound" id="insetSimpleRound"> </div> | 81 <div class="float insetSimpleRound" id="insetSimpleRound"> </div> |
| 85 <div class="float insetComplexRound" id="insetComplexRound"> </div> | 82 <div class="float insetComplexRound" id="insetComplexRound"> </div> |
| 86 <div class="float ellipse" id="ellipse"> </div> | 83 <div class="float ellipse" id="ellipse"> </div> |
| 87 <div class="float contentBox" id="contentBox"> </div> | 84 <div class="float contentBox" id="contentBox"> </div> |
| 88 <div class="float polygon" id="polygon"> </div> | 85 <div class="float polygon" id="polygon"> </div> |
| 89 <div class="float raster" id="raster"> </div> | 86 <div class="float raster" id="raster"> </div> |
| 90 </body> | 87 </body> |
| 91 </html> | 88 </html> |
| OLD | NEW |