Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html |
| diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1c961e43d3d3a822d760529824630000697f4a56 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-timeline-api.html |
| @@ -0,0 +1,29 @@ |
| +<html> |
| +<head> |
| +<script src="../../http/tests/inspector/inspector-test.js"></script> |
| +<script src="../../http/tests/inspector/extensions-test.js"></script> |
| +<script src="../../http/tests/inspector/timeline-test.js"></script> |
| +<script src="extension-timeline-tests.js"></script> |
| + |
| +<script type="text/javascript"> |
| + |
| +function extension_testTimeline(nextTest) |
| +{ |
| + function onRecordingStarted() |
| + { |
| + output("traceProvider.onRecordingStarted fired."); |
| + } |
| + |
| + var traceProvider = webInspector.timeline.addTraceProvider("extension trace provider", "tooltip"); |
| + dumpObject(traceProvider); |
| + traceProvider.onRecordingStarted.addListener(onRecordingStarted); |
|
caseq
2016/07/19 22:01:16
how about onRecordingStopped?
|
| + extension_runTimeline(nextTest); |
| +} |
| + |
| +</script> |
| +</head> |
| +<body onload="runTest()"> |
| +<p>Tests timeline support in WebInspector Extensions API</p> |
| +<span id="test-element"><b></b></span> |
| +</body> |
| +</html> |