forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1565213 - Add routing for sidebar component, r=ladybenko
Add routing for sidebar component Differential Revision: https://phabricator.services.mozilla.com/D43726 --HG-- extra : moz-landing-system : lando
- Loading branch information
Ola Gasidlo
committed
Sep 12, 2019
1 parent
8bc66c2
commit caf9aff
Showing
28 changed files
with
367 additions
and
51 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
devtools/client/application/src/components/manifest/ManifestIssueList.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
devtools/client/application/test/browser/browser_application_panel_sidebar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
"use strict"; | ||
|
||
/** | ||
* Check that the manifest is being properly shown | ||
*/ | ||
|
||
add_task(async function() { | ||
info("Test that we are displaying correctly the sidebar"); | ||
|
||
await enableApplicationPanel(); | ||
const { panel, tab } = await openNewTabAndApplicationPanel(); | ||
const doc = panel.panelWin.document; | ||
|
||
info("Waiting for the sidebar to be displayed"); | ||
await waitUntil(() => doc.querySelector(".js-sidebar") !== null); | ||
ok(true, "Sidebar is being displayed"); | ||
|
||
await waitUntil(() => doc.querySelector(".js-manifest-page") !== null); | ||
ok(true, "Manifest page was loaded per default."); | ||
|
||
// close the tab | ||
info("Closing the tab."); | ||
await BrowserTestUtils.removeTab(tab); | ||
}); | ||
|
||
add_task(async function() { | ||
info("Test that we are displaying correctly the selected page - manifest"); | ||
|
||
await enableApplicationPanel(); | ||
const { panel, tab, target } = await openNewTabAndApplicationPanel(); | ||
const doc = panel.panelWin.document; | ||
|
||
info("Select service worker page"); | ||
selectPage(panel, "service-workers"); | ||
await waitUntil(() => doc.querySelector(".js-service-workers-page") !== null); | ||
|
||
info("Select manifest page in the sidebar"); | ||
const link = doc.querySelector(".js-sidebar-manifest"); | ||
link.click(); | ||
|
||
await waitUntil(() => doc.querySelector(".js-manifest-page") !== null); | ||
ok(true, "Manifest page was selected."); | ||
|
||
await unregisterAllWorkers(target.client); | ||
|
||
// close the tab | ||
info("Closing the tab."); | ||
await BrowserTestUtils.removeTab(tab); | ||
}); | ||
|
||
add_task(async function() { | ||
info( | ||
"Test that we are displaying correctly the selected page - service workers" | ||
); | ||
const url = URL_ROOT + "resources/manifest/load-ok.html"; | ||
|
||
await enableApplicationPanel(); | ||
const { panel, tab } = await openNewTabAndApplicationPanel(url); | ||
const doc = panel.panelWin.document; | ||
|
||
selectPage(panel, "manifest"); | ||
|
||
info("Waiting for the manifest to load"); | ||
await waitUntil(() => doc.querySelector(".js-manifest-page") !== null); | ||
ok(true, "Manifest page was selected."); | ||
|
||
info("Select service worker page in the sidebar"); | ||
const link = doc.querySelector(".js-sidebar-service-workers"); | ||
link.click(); | ||
|
||
await waitUntil(() => doc.querySelector(".js-service-workers-page") !== null); | ||
ok(true, "Service workers page was selected."); | ||
|
||
// close the tab | ||
info("Closing the tab."); | ||
await BrowserTestUtils.removeTab(tab); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.