Bug 767669 - 'pref show prefName' should show the pref name next to the pref value. r=jwalker

This commit is contained in:
Jared Wein 2013-03-15 01:21:33 -04:00
Родитель 870608eab5
Коммит eaf84a5262
3 изменённых файлов: 15 добавлений и 10 удалений

Просмотреть файл

@ -9381,7 +9381,7 @@ var prefShowCmdSpec = {
}
],
exec: function Command_prefShow(args, context) {
return args.setting.value;
return l10n.lookupFormat('prefShowSettingValue', [ args.setting.name, args.setting.value ]);
}
};

Просмотреть файл

@ -223,7 +223,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^" + tiltEnabledOrig + "$"),
output: new RegExp("^devtools\.tilt\.enabled: " + tiltEnabledOrig + "$"),
},
},
{
@ -252,7 +252,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^true$"),
output: new RegExp("^devtools\.tilt\.enabled: true$"),
},
},
{
@ -277,7 +277,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^false$"),
output: new RegExp("^devtools\.tilt\.enabled: false$"),
},
post: function() {
is(prefBranch.getBoolPref("devtools.tilt.enabled"), false,
@ -298,7 +298,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^10$"),
output: new RegExp("^devtools\.editor\.tabsize: 10$"),
},
},
{
@ -323,7 +323,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^20$"),
output: new RegExp("^devtools\.editor\.tabsize: 20$"),
},
post: function() {
is(prefBranch.getIntPref("devtools.editor.tabsize"), 20,
@ -352,7 +352,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^1$"),
output: new RegExp("^devtools\.editor\.tabsize: 1$"),
},
post: function() {
is(prefBranch.getIntPref("devtools.editor.tabsize"), 1,
@ -373,7 +373,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^" + remoteHostOrig + "$"),
output: new RegExp("^devtools\.debugger\.remote-host: " + remoteHostOrig + "$"),
},
},
{
@ -398,7 +398,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^e.com$"),
output: new RegExp("^devtools\.debugger\.remote-host: e.com$"),
},
post: function() {
var ecom = prefBranch.getComplexValue("devtools.debugger.remote-host",
@ -428,7 +428,7 @@ let tests = {
},
exec: {
completed: true,
output: new RegExp("^moz.foo$"),
output: new RegExp("^devtools\.debugger\.remote-host: moz.foo$"),
},
post: function() {
var mozfoo = prefBranch.getComplexValue("devtools.debugger.remote-host",

Просмотреть файл

@ -239,6 +239,11 @@ prefShowSettingDesc=Setting to display
# for help on what it does.
prefShowSettingManual=The name of the setting to display
# LOCALIZATION NOTE (prefShowSettingValue): This is used to show the preference
# name and the associated preference value. %1$S is replaced with the preference
# name and %2$S is replaced with the preference value.
prefShowSettingValue=%1$S: %2$S
# LOCALIZATION NOTE (prefSetDesc): A very short description of the 'pref set'
# command. This string is designed to be shown in a menu alongside the command
# name, which is why it should be as short as possible. See prefSetManual for