Venerable brethren and sestren,
I am trying to install MozRepl from CPAN, but many test are failing. I have Mozilla Firefox 10.0 (wow, they increment versions faster than Perl!) with MozRepl 1.1. Is there anyone having any experience or knowing a workaround? The first failure:
.------------+------------------------------------------. | 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]'
The last one ():
.------------+------------------------------------------. | 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}'
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 | 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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.