Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details.html

Issue 2859343002: DevTools: Add Product field in timeline event details. (Closed)
Patch Set: addressing comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details.html
new file mode 100644
index 0000000000000000000000000000000000000000..09b1e6c0cb52c4d0a63d34171b5770dbd9c4d22c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details.html
@@ -0,0 +1,79 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/timeline-test.js"></script>
+<script>
+
+async function test()
+{
+ var sessionId = "6.23";
+ var rawTraceEvents = [
+ {
+ "args": {
+ "name": "Renderer"
+ },
+ "cat": "__metadata",
+ "name": "process_name",
+ "ph": "M",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 0
+ },
+ {
+ "args": {
+ "name": "CrRendererMain"
+ },
+ "cat": "__metadata",
+ "name": "thread_name",
+ "ph": "M",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 0
+ },
+ {
+ "args": {
+ "sessionId": sessionId
+ },
+ "cat": "disabled-by-default-devtools.timeline",
+ "name": "TracingStartedInPage",
+ "ph": "I",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 100000,
+ "tts": 606543
+ },
+ {
+ "cat": "disabled-by-default-devtools.timeline",
+ "name": "EvaluateScript",
+ "ph": "X",
+ "pid": 17851,
+ "tid": 23,
+ "ts": 101000,
+ "dur": 10000,
+ "args": {
+ "data": {
+ "url": "https://www.google.com",
+ "lineNumber": 1337
+ }
+ }
+ }];
+
+ var model = InspectorTest.createPerformanceModelWithEvents(rawTraceEvents).timelineModel();
+ var linkifier = new Components.Linkifier();
+ for (var event of model.mainThreadEvents()) {
+ var node = await Timeline.TimelineUIUtils.buildTraceEventDetails(event, model, linkifier);
+ for (var child of node.querySelectorAll(".timeline-details-view-row"))
+ InspectorTest.addResult(`${child.firstChild.innerText}: ${child.lastChild.innerText}`);
+ }
+ InspectorTest.completeTest();
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Checks the Product property in details pane for a node with URL.
+</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-details-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698