diff options
Diffstat (limited to 'devtools/client/application/test/node/components/routing/__snapshots__')
3 files changed, 214 insertions, 0 deletions
diff --git a/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap new file mode 100644 index 0000000000..4fc899a511 --- /dev/null +++ b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap @@ -0,0 +1,9 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`PageSwitcher renders nothing when an invalid page is selected 1`] = `""`; + +exports[`PageSwitcher renders nothing when no page is selected 1`] = `""`; + +exports[`PageSwitcher renders the ManifestPage component when manifest page is selected 1`] = `<Connect(ManifestPage) />`; + +exports[`PageSwitcher renders the WorkersPage component when workers page is selected 1`] = `<Connect(WorkersPage) />`; diff --git a/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap new file mode 100644 index 0000000000..4348d7c5b9 --- /dev/null +++ b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap @@ -0,0 +1,64 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Sidebar renders the expected snapshot when no page is selected 1`] = ` +<aside + className="sidebar js-sidebar" +> + <ul + className="sidebar__list" + > + <Connect(SidebarItem) + isSelected={false} + key="sidebar-item-service-workers" + page="service-workers" + /> + <Connect(SidebarItem) + isSelected={false} + key="sidebar-item-manifest" + page="manifest" + /> + </ul> +</aside> +`; + +exports[`Sidebar renders the expected snapshot when the manifest page is selected 1`] = ` +<aside + className="sidebar js-sidebar" +> + <ul + className="sidebar__list" + > + <Connect(SidebarItem) + isSelected={false} + key="sidebar-item-service-workers" + page="service-workers" + /> + <Connect(SidebarItem) + isSelected={true} + key="sidebar-item-manifest" + page="manifest" + /> + </ul> +</aside> +`; + +exports[`Sidebar renders the expected snapshot when the service workers page is selected 1`] = ` +<aside + className="sidebar js-sidebar" +> + <ul + className="sidebar__list" + > + <Connect(SidebarItem) + isSelected={true} + key="sidebar-item-service-workers" + page="service-workers" + /> + <Connect(SidebarItem) + isSelected={false} + key="sidebar-item-manifest" + page="manifest" + /> + </ul> +</aside> +`; diff --git a/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap new file mode 100644 index 0000000000..c5f3122e6c --- /dev/null +++ b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap @@ -0,0 +1,141 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`SidebarItem renders the expected snapshot when the manifest page is not selected 1`] = ` +<li + className="sidebar-item js-sidebar-manifest " + onClick={[Function]} + role="link" +> + <Localized + attrs={ + Object { + "alt": true, + "title": true, + } + } + id="sidebar-item-manifest" + > + <img + className="sidebar-item__icon" + src="chrome://devtools/skin/images/application-manifest.svg" + /> + </Localized> + <Localized + attrs={ + Object { + "title": true, + } + } + id="sidebar-item-manifest" + > + <span + className="devtools-ellipsis-text" + /> + </Localized> +</li> +`; + +exports[`SidebarItem renders the expected snapshot when the manifest page is selected 1`] = ` +<li + className="sidebar-item js-sidebar-manifest sidebar-item--selected" + onClick={[Function]} + role="link" +> + <Localized + attrs={ + Object { + "alt": true, + "title": true, + } + } + id="sidebar-item-manifest" + > + <img + className="sidebar-item__icon" + src="chrome://devtools/skin/images/application-manifest.svg" + /> + </Localized> + <Localized + attrs={ + Object { + "title": true, + } + } + id="sidebar-item-manifest" + > + <span + className="devtools-ellipsis-text" + /> + </Localized> +</li> +`; + +exports[`SidebarItem renders the expected snapshot when the service-workers page is not selected 1`] = ` +<li + className="sidebar-item js-sidebar-service-workers " + onClick={[Function]} + role="link" +> + <Localized + attrs={ + Object { + "alt": true, + "title": true, + } + } + id="sidebar-item-service-workers" + > + <img + className="sidebar-item__icon" + src="chrome://devtools/skin/images/debugging-workers.svg" + /> + </Localized> + <Localized + attrs={ + Object { + "title": true, + } + } + id="sidebar-item-service-workers" + > + <span + className="devtools-ellipsis-text" + /> + </Localized> +</li> +`; + +exports[`SidebarItem renders the expected snapshot when the service-workers page is selected 1`] = ` +<li + className="sidebar-item js-sidebar-service-workers sidebar-item--selected" + onClick={[Function]} + role="link" +> + <Localized + attrs={ + Object { + "alt": true, + "title": true, + } + } + id="sidebar-item-service-workers" + > + <img + className="sidebar-item__icon" + src="chrome://devtools/skin/images/debugging-workers.svg" + /> + </Localized> + <Localized + attrs={ + Object { + "title": true, + } + } + id="sidebar-item-service-workers" + > + <span + className="devtools-ellipsis-text" + /> + </Localized> +</li> +`; |