diff --git a/src/test/components/TabSelectorMenu.test.tsx b/src/test/components/TabSelectorMenu.test.tsx index 3df42bdce7..c1f2f618e5 100644 --- a/src/test/components/TabSelectorMenu.test.tsx +++ b/src/test/components/TabSelectorMenu.test.tsx @@ -32,14 +32,10 @@ describe('app/TabSelectorMenu', () => { threadCPUDelta: 'ns', }; - // Add some frames with innerWindowIDs now. Note that we only expand the - // innerWindowID array and not the others as we don't check them at all. + // Associate the threads with innerWindowIDs now. // // Thread 0 will be present in firstTabTabID. // Thread 1 be present in secondTabTabID. - profile.threads[0].frameTable.innerWindowID[0] = - extraPageData.parentInnerWindowIDsWithChildren; - profile.threads[0].frameTable.length++; profile.threads[0].usedInnerWindowIDs = [ extraPageData.parentInnerWindowIDsWithChildren, ]; @@ -47,9 +43,6 @@ describe('app/TabSelectorMenu', () => { // Add a threadCPUDelta value for thread activity score. profile.threads[0].samples.threadCPUDelta = [1]; - profile.threads[1].frameTable.innerWindowID[0] = - extraPageData.secondTabInnerWindowIDs[0]; - profile.threads[1].frameTable.length++; profile.threads[1].usedInnerWindowIDs = [ extraPageData.secondTabInnerWindowIDs[0], ]; @@ -202,13 +195,7 @@ describe('app/TabSelectorMenu', () => { url: removeURLs(page.url, ``), })); - // Attach innerWindowIDs to the samples. - profile.threads[0].frameTable.innerWindowID[0] = - extraPageData.parentInnerWindowIDsWithChildren; - profile.threads[0].frameTable.length++; - profile.threads[0].frameTable.innerWindowID[1] = - extraPageData.secondTabInnerWindowIDs[0]; - profile.threads[0].frameTable.length++; + // Attach innerWindowIDs to the threads. profile.threads[0].usedInnerWindowIDs = [ extraPageData.parentInnerWindowIDsWithChildren, extraPageData.secondTabInnerWindowIDs[0], diff --git a/src/test/store/profile-view.test.ts b/src/test/store/profile-view.test.ts index 9c52905225..46d1fee453 100644 --- a/src/test/store/profile-view.test.ts +++ b/src/test/store/profile-view.test.ts @@ -757,10 +757,10 @@ describe('actions/ProfileView', function () { // use a BitSet to keep track of something that's per-stack (such as whether a stack matches // the search filter), the BitSet needs at least two 32-bit slots. const { profile } = getProfileFromTextSamples(` - A[lib:K][file:S] A[lib:K][file:S] A[lib:K][file:S] D[lib:nNn][file:uV] C[lib:m][file:t] - B[lib:L][file:t] B[lib:L][file:t] E[lib:O][file:Pq] + A[lib:K][file:S] A[lib:K][file:S] A[lib:K][file:S] D[lib:nNn][file:uV] C[lib:m][file:t] + B[lib:L][file:t] B[lib:L][file:t] E[lib:O][file:Pq] A[lib:K][file:S] C[lib:m][file:t] - B[lib:L][file:t] D[lib:n][file:uV] + B[lib:L][file:t] D[lib:nNn][file:uV] B[lib:L][file:t] B[lib:L][file:t] B[lib:L][file:t] @@ -911,7 +911,7 @@ describe('actions/ProfileView', function () { ]); dispatch(ProfileView.changeCallTreeSearchString('NN')); const callTree_NN = selectedThreadSelectors.getCallTree(getState()); - // Keep all stacks which include function D, which has filename nNn + // Keep all stacks which include function D, which has lib name nNn expect(formatTree(callTree_NN)).toEqual([ '- A (total: 1, self: —)', ' - B (total: 1, self: —)',