1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 04:24:11 +01:00

Bang on tests a bit more.

This commit is contained in:
Kris Maglione
2011-02-01 00:29:21 -05:00
parent 8854c09db9
commit dab394de78
4 changed files with 187 additions and 127 deletions

View File

@@ -11,8 +11,9 @@ var jumlib = module("resource://mozmill/modules/jum.js");
function toJSON(val) {
if (typeof val == "function")
return val.toSource();
else
return val;
if (val instanceof Ci.nsIDOMNode || val instanceof Ci.nsIDOMWindow)
return { DOMNode: String(val) };
return val;
}
function test(val, params) {