| 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="profiler-test.js"></script> | 4 <script src="profiler-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var profileAndExpectations = { | 9 var profileAndExpectations = { |
| 10 "title": "profile1", | 10 "title": "profile1", |
| 11 "target": function() { |
| 12 return WebInspector.targetManager.targets()[0]; |
| 13 }, |
| 11 "_profile": { | 14 "_profile": { |
| 12 "head": { | 15 "head": { |
| 13 "functionName": "(root)", | 16 "functionName": "(root)", |
| 14 "scriptId": "0", | 17 "scriptId": "0", |
| 15 "url": "", | 18 "url": "", |
| 16 "lineNumber": 0, | 19 "lineNumber": 0, |
| 17 "hitCount": 50, | 20 "hitCount": 50, |
| 18 "callUID": 1000, | 21 "callUID": 1000, |
| 19 "children": [ | 22 "children": [ |
| 20 { | 23 { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 112 } |
| 110 | 113 |
| 111 </script> | 114 </script> |
| 112 </head> | 115 </head> |
| 113 <body onload="runTest()"> | 116 <body onload="runTest()"> |
| 114 <p> | 117 <p> |
| 115 Tests bottom-up view self and total time calculation in CPU profiler. | 118 Tests bottom-up view self and total time calculation in CPU profiler. |
| 116 </p> | 119 </p> |
| 117 </body> | 120 </body> |
| 118 </html> | 121 </html> |
| OLD | NEW |