mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 18:15:46 +01:00
Don't hide error generated for :time :no-such-cmd.
--HG-- extra : rebase_source : 100b8c4d6ac54f8bfb983afd1b8064d5fd7b7e8e
This commit is contained in:
@@ -1960,9 +1960,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
args = args[0] || "";
|
args = args[0] || "";
|
||||||
|
|
||||||
if (args[0] == ":")
|
if (args[0] == ":")
|
||||||
var method = function () commands.execute(args, null, true);
|
var func = function () commands.execute(args, null, false);
|
||||||
else
|
else
|
||||||
method = dactyl.userFunc(args);
|
func = dactyl.userFunc(args);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (count > 1) {
|
if (count > 1) {
|
||||||
@@ -1971,7 +1971,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
|
|
||||||
for (let i in util.interruptibleRange(0, count, 500)) {
|
for (let i in util.interruptibleRange(0, count, 500)) {
|
||||||
let now = Date.now();
|
let now = Date.now();
|
||||||
method();
|
func();
|
||||||
total += Date.now() - now;
|
total += Date.now() - now;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2006,7 +2006,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let beforeTime = Date.now();
|
let beforeTime = Date.now();
|
||||||
method();
|
func();
|
||||||
|
|
||||||
if (special)
|
if (special)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -690,7 +690,11 @@ var tests = {
|
|||||||
tabopen: {},
|
tabopen: {},
|
||||||
tabprevious: {},
|
tabprevious: {},
|
||||||
tabrewind: {},
|
tabrewind: {},
|
||||||
time: {},
|
time: {
|
||||||
|
error: ["", ":some-nonexistent-command"/*, "some_nonexistent_reference"*/], // FIXME
|
||||||
|
singleOutput: [":js null", "null"]
|
||||||
|
|
||||||
|
},
|
||||||
toolbarhide: {
|
toolbarhide: {
|
||||||
init: [
|
init: [
|
||||||
["tbs Navigation Toolbar", toolbarState("#nav-bar", true)],
|
["tbs Navigation Toolbar", toolbarState("#nav-bar", true)],
|
||||||
|
|||||||
Reference in New Issue
Block a user