OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .layer { | 4 .layer { |
5 position: absolute; | 5 position: absolute; |
6 width: 20px; | 6 width: 20px; |
7 height: 20px; | 7 height: 20px; |
8 -webkit-transform: translateZ(10px); | 8 -webkit-transform: translateZ(10px); |
9 } | 9 } |
10 </style> | 10 </style> |
11 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 11 <script src="../../http/tests/inspector/inspector-test.js"></script> |
12 <script src="../../../http/tests/inspector/timeline-test.js"></script> | 12 <script src="../../http/tests/inspector/timeline-test.js"></script> |
13 <script src="../../tracing-test.js"></script> | 13 <script src="../tracing-test.js"></script> |
14 <script> | 14 <script> |
15 | 15 |
16 function doActions(callback) | 16 function doActions(callback) |
17 { | 17 { |
18 var layer = document.createElement("div"); | 18 var layer = document.createElement("div"); |
19 layer.classList.add("layer"); | 19 layer.classList.add("layer"); |
20 document.getElementById("parent-layer").appendChild(layer); | 20 document.getElementById("parent-layer").appendChild(layer); |
21 | 21 |
22 requestAnimationFrame(callback); | 22 requestAnimationFrame(callback); |
23 } | 23 } |
(...skipping 19 matching lines...) Expand all Loading... |
43 </script> | 43 </script> |
44 </head> | 44 </head> |
45 | 45 |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 <p> | 47 <p> |
48 Tests the instrumentation of UpdateLayerTree event | 48 Tests the instrumentation of UpdateLayerTree event |
49 </p> | 49 </p> |
50 <div id="parent-layer"></div> | 50 <div id="parent-layer"></div> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |