The last one ():.------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.enter(window); | | result | [object ChromeWindow] - {window: {...},- | | | document: {...}, gPrintSettingsAreGlob- | | | al: false, gSavePrintSettings: false, g- | | | FocusedElement: null, PrintUtils: {...}- | | | , ZoomManager: {...}, ...} | '------------+------------------------------------------' # Failed test at t/10-plugin-repl-enter.t line 12. # got: '[object ChromeWindow] - {window: {...}, document: {.. +.}, gPrintSettingsAreGlobal: false, gSavePrintSettings: false, gFocus +edElement: null, PrintUtils: {...}, ZoomManager: {...}, ...}' # expected: '[object ChromeWindow]'
There are 8 more failures, most of them similar to the ones already mentioned, however the last three seem more serious (getting undef instead of something):.------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | JSONstring.make({ a: 1, b: 2 }); | | result | "{"a":1, | | | "b":2}" | '------------+------------------------------------------' # Failed test at t/20-plugin-json.t line 17. # got: '"{"a":1,"b":2}"' # expected: '{"a":1,"b":2}'
.------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.enter(document); | | result | [object XULDocument] - {location: {...}- | | | , querySelector: function() {...}, quer- | | | ySelectorAll: function() {...}, evaluat- | | | e: function() {...}, createExpression: - | | | function() {...}, createNSResolver: fun- | | | ction() {...}, addEventListener: functi- | | | on() {...}, ...} | '------------+------------------------------------------' # Failed test at t/10-plugin-repl-enter.t line 14. # got: '[object XULDocument] - {location: {...}, querySelecto +r: function() {...}, querySelectorAll: function() {...}, evaluate: fu +nction() {...}, createExpression: function() {...}, createNSResolver: + function() {...}, addEventListener: function() {...}, ...}' # expected: '[object XULDocument]' (...) .------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.home(); | | result | [object ChromeWindow] - {window: {...},- | | | document: {...}, gPrintSettingsAreGlob- | | | al: false, gSavePrintSettings: false, g- | | | FocusedElement: null, PrintUtils: {...}- | | | , ZoomManager: {...}, ...} | '------------+------------------------------------------' # Failed test at t/16-plugin-repl-home.t line 12. # got: '[object ChromeWindow] - {window: {...}, document: {.. +.}, gPrintSettingsAreGlobal: false, gSavePrintSettings: false, gFocus +edElement: null, PrintUtils: {...}, ZoomManager: {...}, ...}' # expected: '[object ChromeWindow]' (...) .------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.util.helpUrlFor(window.document.ge- | | | tElementsByTagName('window')[0]); | | result | "http://xulplanet.com/references/elemre- | | | f/ref_window.html" | '------------+------------------------------------------' # Failed test at t/18-plugin-repl-util-help_url_for.t line 16. # got: '"http://xulplanet.com/references/elemref/ref_window.h +tml"' # expected: 'http://xulplanet.com/references/elemref/ref_window.ht +ml' (...) .------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.util.helpUrlFor("@mozilla.org/netw- | | | ork/protocol;1?name=view-source"); | | result | "http://xulplanet.com/references/xpcomr- | | | ef/comps/c_networkprotocol1nameviewsour- | | | ce.html" | '------------+------------------------------------------' # Failed test at t/18-plugin-repl-util-help_url_for.t line 22. # got: '"http://xulplanet.com/references/xpcomref/comps/c_net +workprotocol1nameviewsource.html"' # expected: 'http://xulplanet.com/references/xpcomref/comps/c_netw +orkprotocol1nameviewsource.html' (...) .------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.util.helpUrlFor("@mozilla.org/supp- | | | orts-float;1"); | | result | "http://xulplanet.com/references/xpcomr- | | | ef/comps/c_supportsfloat1.html" | '------------+------------------------------------------' # Failed test at t/18-plugin-repl-util-help_url_for.t line 29. # got: '"http://xulplanet.com/references/xpcomref/comps/c_sup +portsfloat1.html"' # expected: 'http://xulplanet.com/references/xpcomref/comps/c_supp +ortsfloat1.html' (...) .------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.util.docFor(window); | | result | "TYPE: object | | | " | '------------+------------------------------------------' # Failed test at t/19-plugin-repl-util-doc_for.t line 16. # got: undef # expected: 'object' (...) .------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.util.docFor(window.document); | | result | "TYPE: object | | | NODENAME: #document | | | " | '------------+------------------------------------------' # Failed test at t/19-plugin-repl-util-doc_for.t line 20. # got: undef # expected: 'object' (...) .------------+------------------------------------------. | type | content | +------------+------------------------------------------+ | command | repl.util.docFor(repl.inspect); | | result | "TYPE: function | | | NAME: inspect | | | ARGS: obj, maxDepth, name, curDepth | | | | | | Lists members of a given object. | | | " | '------------+------------------------------------------' # Failed test at t/19-plugin-repl-util-doc_for.t line 27. # got: undef # expected: 'function'
In reply to Failing Tests in MozRepl by choroba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |