-
Notifications
You must be signed in to change notification settings - Fork 15
rewrite browser-test.c / encode-once.js for latest API #7
Comments
Ah, here's where it's crashing: This assert is being hit because I am using a debug build, I will follow up with NSS folks to see if we're missing something here... |
Hm so ignoring the NSS shutdown thing for the moment, I think this should be equivalent to the previous
|
|
@rhelmer Which build of the browser are you using for testing? I can build it and try to debug the script. |
@henrycg this is the latest changeset on bug 1421501, should be able to pull it with: I didn't dig into it much last night, I have a debug build which does produce a lot more output on stdout though, I'll try with an opt build too. |
A couple of things:
|
This version of
|
Ah too bad about Thanks! |
@henrycg hm ok well that produces output like this if I run
If I run
I see in the code for |
Ah thanks was looking at this one first :P will go look at that. |
How difficult is it to write xpcshell tests? One idea would be to extend |
Totally agree that we should have this test in the mozilla-central tree, this is something I can do... was hoping we could limp along a bit more since you already put the work into the |
(adding these sorts of test-only functions is pretty common from what I see poking around the WebIDL, they tend to be behind prefs so they aren't generally available outside of the test framework). I'll give it a shot once I have a moment. |
Cool. I'm happy to help out with the C++ code that will link up to libprio. |
fix issue #7 - encode-once.js needs to be rewritten for latest API
I was just taking a look at
browser-test.c
andencode-once.js
, I took a quick stab at rewriting the latter:This still needs to return the correct output, but I was doing a quick test run with is and seeing:
Hit MOZ_CRASH(NSS_Shutdown failed) at /Users/rhelmer/src/mozilla-central/xpcom/build/XPCOMInit.cpp:1044
I suspect that this has to do with how NSS gets init'd in the xpcshell environment, as I am seeing no problems when running equivalent code in the browser.
The text was updated successfully, but these errors were encountered: