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/timeline-test.js"></script> | 4 <script src="../../../http/tests/inspector/timeline-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function performActions(callback) | 7 function performActions(callback) |
8 { | 8 { |
9 var image = new Image(); | 9 var image = new Image(); |
10 image.onload = bar; | 10 image.onload = bar; |
11 image.src = "resources/anImage.png"; | 11 image.src = "../resources/anImage.png"; |
12 | 12 |
13 function bar() | 13 function bar() |
14 { | 14 { |
15 var image = new Image(); | 15 var image = new Image(); |
16 image.onload = function(event) { callback(); } // do not pass event arg
ument to the callback. | 16 image.onload = function(event) { callback(); } // do not pass event arg
ument to the callback. |
17 image.src = "resources/anotherImage.png"; | 17 image.src = "../resources/anotherImage.png"; |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 function test() | 21 function test() |
22 { | 22 { |
23 WebInspector.TimelinePanel.show(); | 23 WebInspector.TimelinePanel.show(); |
24 WebInspector.panels.timeline._model._currentTarget = WebInspector.targetMana
ger.mainTarget(); | 24 WebInspector.panels.timeline._model._currentTarget = WebInspector.targetMana
ger.mainTarget(); |
25 WebInspector.panels.timeline._captureJSProfileSetting.set(false); | 25 WebInspector.panels.timeline._captureJSProfileSetting.set(false); |
26 InspectorTest.invokeAsyncWithTimeline("performActions", finish); | 26 InspectorTest.invokeAsyncWithTimeline("performActions", finish); |
27 | 27 |
(...skipping 24 matching lines...) Expand all Loading... |
52 </script> | 52 </script> |
53 </head> | 53 </head> |
54 | 54 |
55 <body onload="runTest()"> | 55 <body onload="runTest()"> |
56 <p> | 56 <p> |
57 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc. | 57 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc. |
58 </p> | 58 </p> |
59 | 59 |
60 </body> | 60 </body> |
61 </html> | 61 </html> |
OLD | NEW |