зеркало из https://github.com/mozilla/gecko-dev.git
Bug 899753 - Part 0: Add the table method to Console.{h,cpp,webidl} r=bz
This commit is contained in:
Родитель
480dfe1fac
Коммит
560bba04fc
|
@ -624,6 +624,7 @@ METHOD(Warn, "warn")
|
|||
METHOD(Error, "error")
|
||||
METHOD(Exception, "exception")
|
||||
METHOD(Debug, "debug")
|
||||
METHOD(Table, "table")
|
||||
|
||||
void
|
||||
Console::Trace(JSContext* aCx)
|
||||
|
|
|
@ -66,6 +66,9 @@ public:
|
|||
void
|
||||
Debug(JSContext* aCx, const Sequence<JS::Value>& aData);
|
||||
|
||||
void
|
||||
Table(JSContext* aCx, const Sequence<JS::Value>& aData);
|
||||
|
||||
void
|
||||
Trace(JSContext* aCx);
|
||||
|
||||
|
@ -111,6 +114,7 @@ private:
|
|||
MethodError,
|
||||
MethodException,
|
||||
MethodDebug,
|
||||
MethodTable,
|
||||
MethodTrace,
|
||||
MethodDir,
|
||||
MethodGroup,
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
ok("console" in window, "Console exists");
|
||||
window.console.log(42);
|
||||
ok("table" in console, "Console has the 'table' method.");
|
||||
window.console = 42;
|
||||
is(window.console, 42, "Console is replacable");
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ interface Console {
|
|||
void error(any... data);
|
||||
void _exception(any... data);
|
||||
void debug(any... data);
|
||||
void table(any... data);
|
||||
void trace();
|
||||
void dir(any... data);
|
||||
void group(any... data);
|
||||
|
|
Загрузка…
Ссылка в новой задаче