<div> What would be the best way to debug Narcissus code. Can I use Firebug and Venkman?</div><div><br></div><div>Thanks,</div><div>Prateek.</div><div><br><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 12:25 PM, Tom Austin <span dir="ltr"><<a href="mailto:taustin@ucsc.edu">taustin@ucsc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>
<div bgcolor="#ffffff" text="#000000">
Hi Prateek,<br>
<br>
I ran into this just recently. I think there is a bug in
jstests.py. I'll file a ticket later today.<br>
<br>
For now, if you change manifest.py in the jstests code, you should
be able to run the tests without a problem.<br>
<br>
diff --git a/js/src/tests/manifest.py b/js/src/tests/manifest.py<br>
--- a/js/src/tests/manifest.py<br>
+++ b/js/src/tests/manifest.py<br>
@@ -27,17 +27,17 @@ class XULInfo:<br>
def as_js(self):<br>
"""Return JS that when executed sets up variables so that
JS expression<br>
predicates on XUL build info evaluate properly."""<br>
<br>
return 'var xulRuntime = { OS: "%s", XPCOMABI: "%s", shell:
true }; var isDebugBuild=%s; var Android=%s;' % (<br>
self.os,<br>
self.abi,<br>
str(self.isdebug).lower(),<br>
- self.os == "Android")<br>
+ str(self.os == "Android").lower())<br>
<br>
<br>
<br>
--Tom<div><div></div><div class="h5"><br>
<br>
<br>
On 7/1/11 6:25 PM, Prateek Saxena wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">Hi,<br>
<br>
I am trying to test my install of narcissus. I have the master
branch from Github,<br>
I followed the steps listed on: <a href="https://github.com/mozilla/narcissus/wiki" target="_blank">https://github.com/mozilla/narcissus/wiki</a><br>
<br>
Specifically, "./njs" works fine for me. I have the following
symlink setup :<br>
tests -> ~/mozilla-central/js/src/tests/<br>
<br>
But I get this strange error:<br>
<br>
$./jstests <br>
[: 38: -a: unexpected operator<br>
Traceback (most recent call last):<br>
File "jstests.py", line 309, in <module><br>
test_list = manifest.parse(OPTIONS.manifest, xul_tester)<br>
File
"/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
line 124, in parse<br>
ans += parse(os.path.join(dir, include_file), xul_tester,
include_reldir)<br>
File
"/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
line 124, in parse<br>
ans += parse(os.path.join(dir, include_file), xul_tester,
include_reldir)<br>
File
"/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
line 158, in parse<br>
if xul_tester.test(cond):<br>
File
"/home/prateeks/research/mozilla-central/js/src/tests/manifest.py",
line 95, in test<br>
% (cond, out, err))<br>
Exception: Failed to test XUL condition '!xulRuntime.shell';
output was '', stderr was ':1: ReferenceError: False is not
defined\n'<br>
<br>
When I run the python script located in the tests directory, by
pointing it to the compiled spidermonkey 'js', it passes all
tests.<br>
<br>
Any suggestions what might be missing?<br>
<br>
Thanks,<br>
Prateek.<br>
<br>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Narcissus mailing list
<a href="mailto:Narcissus@mozilla.org" target="_blank">Narcissus@mozilla.org</a>
<a href="https://mail.mozilla.org/listinfo/narcissus" target="_blank">https://mail.mozilla.org/listinfo/narcissus</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Narcissus mailing list<br>
<a href="mailto:Narcissus@mozilla.org">Narcissus@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/narcissus" target="_blank">https://mail.mozilla.org/listinfo/narcissus</a><br>
<br></blockquote></div><br></div>