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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames.html

Issue 2486923005: Timeline: add moar attributes in frame instrumentation (Closed)
Patch Set: rebased Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script type="text/javascript" src="../../http/tests/inspector-protocol/tracing- test.js"></script> 4 <script type="text/javascript" src="../../http/tests/inspector-protocol/tracing- test.js"></script>
5 <script> 5 <script>
6 function performActions() 6 function performActions()
7 { 7 {
8 var frame1 = document.createElement("iframe"); 8 var frame1 = document.createElement("iframe");
9 frame1.name = "Frame No. 1"; 9 frame1.name = "Frame No. 1";
10 document.body.appendChild(frame1); 10 document.body.appendChild(frame1);
(...skipping 20 matching lines...) Expand all
31 InspectorTest.log("Frames in CommitLoad events"); 31 InspectorTest.log("Frames in CommitLoad events");
32 var commitLoads = InspectorTest.findEvents("CommitLoad", "X"); 32 var commitLoads = InspectorTest.findEvents("CommitLoad", "X");
33 for (var event of commitLoads) 33 for (var event of commitLoads)
34 dumpFrame(event.args["data"]); 34 dumpFrame(event.args["data"]);
35 InspectorTest.completeTest(); 35 InspectorTest.completeTest();
36 } 36 }
37 37
38 function dumpFrame(frame) 38 function dumpFrame(frame)
39 { 39 {
40 var url = frame.url.replace(/.*\/(([^/]*\/){2}[^/]*$)/, "$1"); 40 var url = frame.url.replace(/.*\/(([^/]*\/){2}[^/]*$)/, "$1");
41 InspectorTest.log(`url: ${url} name: ${frame.name}`); 41 InspectorTest.log(`url: ${url} name: ${frame.name} parent: ${typeof fram e.parent} nodeId: ${typeof frame.nodeId}`);
42 } 42 }
43 } 43 }
44 </script> 44 </script>
45 </head> 45 </head>
46 <body onLoad="runTest();"> 46 <body onLoad="runTest();">
47 <iframe src="data:text/html,<script>window.foo = 42</script>" name="frame0"></if rame>
47 </body> 48 </body>
48 </html> 49 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698