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/layers-test.js"></script> | 4 <script src="../../http/tests/inspector/layers-test.js"></script> |
5 <script> | 5 <script> |
6 function test() | 6 function test() |
7 { | 7 { |
8 function onSnapshotDone(snapshot) | 8 function onSnapshotDone(snapshot) |
9 { | 9 { |
10 var wrappedCallback = InspectorBackend.wrapClientCallback(onHistoryRecei
ved, "LayerTreeAgent.snapshotCommandLog(): "); | 10 var wrappedCallback = InspectorBackend.wrapClientCallback(onHistoryRecei
ved, "LayerTreeAgent.snapshotCommandLog(): "); |
11 LayerTreeAgent.snapshotCommandLog(snapshot._id, wrappedCallback); | 11 LayerTreeAgent.snapshotCommandLog(snapshot._id, wrappedCallback); |
12 } | 12 } |
13 | 13 |
14 function onHistoryReceived(history) | 14 function onHistoryReceived(history) |
15 { | 15 { |
16 InspectorTest.addResult("Canvas log: "); | 16 InspectorTest.addResult("Canvas log:"); |
17 InspectorTest.addObject(history); | 17 InspectorTest.addObject(history, {"genID": "skip"}); |
18 InspectorTest.completeTest(); | 18 InspectorTest.completeTest(); |
19 } | 19 } |
20 | 20 |
21 function onGotLayers() | 21 function onGotLayers() |
22 { | 22 { |
23 var layer = InspectorTest.findLayerByNodeIdAttribute("a"); | 23 var layer = InspectorTest.findLayerByNodeIdAttribute("a"); |
24 layer.requestSnapshot(onSnapshotDone); | 24 layer.requestSnapshot(onSnapshotDone); |
25 } | 25 } |
26 | 26 |
27 WebInspector.inspectorView.showPanel("layers"); | 27 WebInspector.inspectorView.showPanel("layers"); |
28 InspectorTest.requestLayers(onGotLayers); | 28 InspectorTest.requestLayers(onGotLayers); |
29 } | 29 } |
30 </script> | 30 </script> |
31 </head> | 31 </head> |
32 <body onload="runTest()"> | 32 <body onload="runTest()"> |
33 <div id="a" style="-webkit-transform: translateZ(0px); background-color:blue; wi
dth:100px; height:100px;"> | 33 <div id="a" style="-webkit-transform: translateZ(0px); background-color:blue; wi
dth:100px; height:100px;"> |
34 <div style="width:50px; height:50px; background-color:red;"></div> | 34 <div style="width:50px; height:50px; background-color:red;"></div> |
35 <img src="../timeline/resources/test.png"> | 35 <img src="../timeline/resources/test.png"> |
36 </div> | 36 </div> |
37 </body> | 37 </body> |
38 </html> | 38 </html> |
OLD | NEW |