Bug 777001 - [Developer Toolbar] Change "inspect" command's param name, "node" to "selector". r=jwalker

This commit is contained in:
OHZEKI Tetsuharu 2012-08-25 06:34:23 +01:00
Родитель 2a69ebb622
Коммит 5c0a1fcdfc
2 изменённых файлов: 12 добавлений и 12 удалений

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

@ -16,7 +16,7 @@ gcli.addCommand({
manual: gcli.lookup("inspectManual"),
params: [
{
name: "node",
name: "selector",
type: "node",
description: gcli.lookup("inspectNodeDesc"),
manual: gcli.lookup("inspectNodeManual")
@ -24,6 +24,6 @@ gcli.addCommand({
],
exec: function Command_inspect(args, context) {
let document = context.environment.chromeDocument;
document.defaultView.InspectorUI.openInspectorUI(args.node);
document.defaultView.InspectorUI.openInspectorUI(args.selector);
}
});

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

@ -14,11 +14,11 @@ function testInspect() {
helpers.setInput('inspect');
helpers.check({
input: 'inspect',
hints: ' <node>',
hints: ' <selector>',
markup: 'VVVVVVV',
status: 'ERROR',
args: {
node: { message: '' },
selector: { message: '' },
}
});
@ -29,7 +29,7 @@ function testInspect() {
markup: 'VVVVVVVVII',
status: 'ERROR',
args: {
node: { message: 'No matches' },
selector: { message: 'No matches' },
}
});
@ -40,7 +40,7 @@ function testInspect() {
markup: 'VVVVVVVVEEEE',
status: 'ERROR',
args: {
node: { message: 'Too many matches (2)' },
selector: { message: 'Too many matches (2)' },
}
});
@ -51,7 +51,7 @@ function testInspect() {
markup: 'VVVVVVVVVVV',
status: 'VALID',
args: {
node: { message: '' },
selector: { message: '' },
}
});
@ -62,7 +62,7 @@ function testInspect() {
markup: 'VVVVVVVVIIIIIIIII',
status: 'ERROR',
args: {
node: { message: 'No matches' },
selector: { message: 'No matches' },
}
});
@ -73,7 +73,7 @@ function testInspect() {
markup: 'VVVVVVVVVVVVVVVVVV',
status: 'VALID',
args: {
node: { message: '' },
selector: { message: '' },
}
});
@ -84,7 +84,7 @@ function testInspect() {
markup: 'VVVVVVVVVVVVVVV',
status: 'VALID',
args: {
node: { message: '' },
selector: { message: '' },
}
});
@ -95,7 +95,7 @@ function testInspect() {
markup: 'VVVVVVVVVVVVVVVVVVVVVVVV',
status: 'VALID',
args: {
node: { message: '' },
selector: { message: '' },
}
});
@ -106,7 +106,7 @@ function testInspect() {
markup: 'VVVVVVVVVVVVVVVV',
status: 'VALID',
args: {
node: { message: '' },
selector: { message: '' },
}
});