|
1 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | | -import { storeWithSimpleProfile, storeWithProfile } from '../fixtures/stores'; |
| 4 | +import { storeWithSimpleProfile } from '../fixtures/stores'; |
5 | 5 | import * as UrlStateSelectors from '../../selectors/url-state'; |
6 | 6 | import * as AppSelectors from '../../selectors/app'; |
7 | 7 | import createStore from '../../app-logic/create-store'; |
8 | 8 | import { withAnalyticsMock } from '../fixtures/mocks/analytics'; |
9 | | -import { isolateProcess } from '../../actions/profile-view'; |
10 | | -import { getProfileWithNiceTracks } from '../fixtures/profiles/tracks'; |
11 | 9 |
|
12 | 10 | import * as AppActions from '../../actions/app'; |
13 | 11 |
|
@@ -148,31 +146,4 @@ describe('app actions', function () { |
148 | 146 | expect(UrlStateSelectors.getSelectedTab(getState())).toEqual('calltree'); |
149 | 147 | }); |
150 | 148 | }); |
151 | | - |
152 | | - describe('panelLayoutGeneration', function () { |
153 | | - it('can be manually updated using an action', function () { |
154 | | - const { dispatch, getState } = storeWithSimpleProfile(); |
155 | | - expect(AppSelectors.getPanelLayoutGeneration(getState())).toBe(0); |
156 | | - dispatch(AppActions.invalidatePanelLayout()); |
157 | | - expect(AppSelectors.getPanelLayoutGeneration(getState())).toBe(1); |
158 | | - dispatch(AppActions.invalidatePanelLayout()); |
159 | | - expect(AppSelectors.getPanelLayoutGeneration(getState())).toBe(2); |
160 | | - }); |
161 | | - |
162 | | - it('will be updated when working with the sidebar', function () { |
163 | | - const { dispatch, getState } = storeWithSimpleProfile(); |
164 | | - expect(AppSelectors.getPanelLayoutGeneration(getState())).toBe(0); |
165 | | - dispatch(AppActions.changeSidebarOpenState('flame-graph', false)); |
166 | | - expect(AppSelectors.getPanelLayoutGeneration(getState())).toBe(1); |
167 | | - }); |
168 | | - |
169 | | - it('will be updated when working with the timeline', function () { |
170 | | - const { dispatch, getState } = storeWithProfile( |
171 | | - getProfileWithNiceTracks() |
172 | | - ); |
173 | | - expect(AppSelectors.getPanelLayoutGeneration(getState())).toBe(0); |
174 | | - dispatch(isolateProcess(0)); |
175 | | - expect(AppSelectors.getPanelLayoutGeneration(getState())).toBe(1); |
176 | | - }); |
177 | | - }); |
178 | 149 | }); |
0 commit comments