Bug 1403977 - Show taller toolbox for tool-specific screenshots;r=MattN

MozReview-Commit-ID: 27O0YDdFbzr

--HG--
extra : rebase_source : 328c0a35fe9527f823c7617996f4966c4a5db643
This commit is contained in:
Brian Grinstead 2017-11-10 15:12:53 -08:00
parent c521699239
commit fc2a960290
2 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,7 @@ this.DevTools = {
this.configurations[panel] = {};
this.configurations[panel].selectors = [selectToolbox];
this.configurations[panel].applyConfig = async function() {
Services.prefs.setIntPref("devtools.toolbox.footer.height", 800);
await gDevTools.showToolbox(getTargetForSelectedTab(), panel, "bottom");
await new Promise(resolve => setTimeout(resolve, 500));
};
@ -44,6 +45,7 @@ this.DevTools = {
bottomToolbox: {
selectors: [selectToolbox],
async applyConfig() {
Services.prefs.clearUserPref("devtools.toolbox.footer.height");
await gDevTools.showToolbox(getTargetForSelectedTab(), "inspector", "bottom");
await new Promise(resolve => setTimeout(resolve, 1000));
},

View File

@ -11,3 +11,9 @@ console.groupEnd();
console.count("counter");
console.count("counter");
console.log("first", {a: 1}, "second", {b: "hello"}, "third", {c: new Map()});
console.log("first", {a: 1}, "second", {b: "hello"});
console.log("first", {a: 1}, "\nsecond", {b: "hello"});
console.log("first", "\nsecond");
console.log("\nfirst", "second");