| Index: tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| diff --git a/tracing/tracing/extras/chrome/estimated_input_latency_test.html b/tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| index f30e9dd4f4e4379c72eb9028a353b5a4b835c041..64878fddd3fdbed7997c9142032d7ec86051a5c2 100644
|
| --- a/tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| +++ b/tracing/tracing/extras/chrome/estimated_input_latency_test.html
|
| @@ -56,20 +56,13 @@
|
| * Adds a FrameLoader snapshot to rendererProcess that is used by test FMP
|
| * candidate slices.
|
| */
|
| - function addTestFrame(rendererProcess, mainThread) {
|
| + function addTestFrame(rendererProcess) {
|
| rendererProcess.objects.addSnapshot(
|
| 'ptr', 'loading', 'FrameLoader', 300, {
|
| isLoadingMainFrame: true,
|
| frame: {id_ref: '0xdeadbeef'},
|
| documentLoaderURL: 'http://example.com'
|
| });
|
| - mainThread.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx({
|
| - cat: 'loading',
|
| - title: 'markAsMainFrame',
|
| - start: 300,
|
| - duration: 0.0,
|
| - args: {frame: '0xdeadbeef'}
|
| - }));
|
| }
|
|
|
| function addNavigationStart(mainThread, startNavTime) {
|
| @@ -130,8 +123,9 @@
|
| */
|
| test('getInteractiveTimestamps', () => {
|
| const model = createTestModel(rendererProcess => {
|
| + addTestFrame(rendererProcess);
|
| +
|
| const mainThread = rendererProcess.getOrCreateThread(MAIN_THREAD_ID);
|
| - addTestFrame(rendererProcess, mainThread);
|
| addNavigationStart(mainThread, 0);
|
| addFMPCandidate(mainThread, 5000);
|
|
|
| @@ -161,7 +155,7 @@
|
| const mainThread = rendererProcess.getOrCreateThread(pid + 10);
|
| mainThread.name = 'CrRendererMain';
|
|
|
| - addTestFrame(rendererProcess, mainThread);
|
| + addTestFrame(rendererProcess);
|
| addNavigationStart(mainThread, pid * 1000);
|
| addFMPCandidate(mainThread, pid * 1000 + 2000);
|
| addNavigationStart(mainThread, pid * 2000);
|
|
|