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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-js-blackboxing.html

Issue 1663723002: [DevTools] Add sourceMap support for blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@call-set-blackboxed-ranges-on-script-parsed
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
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="../tracing-test.js"></script> 4 <script src="../tracing-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var sessionId = "6.23"; 8 var sessionId = "6.23";
9 var rawTraceEvents = [ 9 var rawTraceEvents = [
10 { 10 {
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 InspectorTest.addResult(padding + name + ": " + timelineData.entryTo talTimes[i] + " @ " + timelineData.entryStartTimes[i]); 281 InspectorTest.addResult(padding + name + ": " + timelineData.entryTo talTimes[i] + " @ " + timelineData.entryStartTimes[i]);
282 } 282 }
283 } 283 }
284 284
285 Runtime.experiments.enableForTest("blackboxJSFramesOnTimeline"); 285 Runtime.experiments.enableForTest("blackboxJSFramesOnTimeline");
286 var tracingTimelineModel = InspectorTest.tracingTimelineModel(); 286 var tracingTimelineModel = InspectorTest.tracingTimelineModel();
287 tracingTimelineModel.setEventsForTest(rawTraceEvents); 287 tracingTimelineModel.setEventsForTest(rawTraceEvents);
288 var dataProvider = new WebInspector.TimelineFlameChartDataProvider(tracingTi melineModel, new WebInspector.TracingTimelineFrameModel()); 288 var dataProvider = new WebInspector.TimelineFlameChartDataProvider(tracingTi melineModel, new WebInspector.TracingTimelineFrameModel());
289 289
290 InspectorTest.addResult("\nBlackboxed url: lib_script.js"); 290 InspectorTest.addResult("\nBlackboxed url: lib_script.js");
291 WebInspector.BlackboxSupport.blackboxURL("lib_script.js"); 291 WebInspector.blackboxManager.blackboxURL("lib_script.js");
292 printTimelineData(dataProvider); 292 printTimelineData(dataProvider);
293 293
294 InspectorTest.addResult("\nUnblackboxed url: lib_script.js"); 294 InspectorTest.addResult("\nUnblackboxed url: lib_script.js");
295 WebInspector.BlackboxSupport.unblackbox("lib_script.js", false); 295 WebInspector.blackboxManager.unblackbox("lib_script.js", false);
296 printTimelineData(dataProvider); 296 printTimelineData(dataProvider);
297 297
298 InspectorTest.completeTest(); 298 InspectorTest.completeTest();
299 } 299 }
300 300
301 </script> 301 </script>
302 </head> 302 </head>
303 <body onload="runTest()"> 303 <body onload="runTest()">
304 </body> 304 </body>
305 </html> 305 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698