unittest.html

14 views
Skip to first unread message

billy.earney

unread,
Jan 30, 2012, 9:05:56 AM1/30/12
to Skulpt
I'm trying to get the unittests working (file: doc/static/
unittest.html). The button references a function called main, but I
cannot find a main function. There is a testsMain, but when I make
this change, I get a javascript error (function not found). Is there
some type of scope issue, that occurs when putting all the code in
browser-test.js in windows.addEvent('onload', function() { ?

Any help is greatly appreciated.

Billy

billy.earney

unread,
Jan 30, 2012, 9:43:05 PM1/30/12
to Skulpt
I was able to get this resolved, and pushed the changes to billyearney-
skulpt.

In summary, I removed the window.addEvent.. and replaced it with
window.onload, and removed the requirement for
mootools. Added in some goog.requires and added base.js and deps.js
directly in a script tag. Making these changes allowed the
tests to run, with a few unit test failures, but the majority seem to
work.
Reply all
Reply to author
Forward
0 new messages