Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1586603 - Lower deprecation warning message priority. r=jdescottes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nchevobbe committed Oct 10, 2019
1 parent f9af75b commit 62e60f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devtools/client/scratchpad/scratchpad.js
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ var Scratchpad = {
deprecationFragment,
"scratchpad.deprecated",
null,
this.notificationBox.PRIORITY_WARNING_HIGH
this.notificationBox.PRIORITY_WARNING_LOW
);

this.editor.on("change", this._onChanged);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ function runTests() {

is(
allNotifications[0].messageText.textContent,
"This scratchpad executes in the Browser context.",
"There is a notification in browser context"
"Scratchpad will be disabled in a future release. Learn more…",
"The deprecation warning is displayed"
);

is(
allNotifications[1].messageText.textContent,
"Scratchpad will be disabled in a future release. Learn more…",
"The deprecation warning is displayed"
"This scratchpad executes in the Browser context.",
"There is a notification in browser context"
);

const [from, to] = sp.editor.getPosition(31, 32);
Expand Down

0 comments on commit 62e60f8

Please sign in to comment.