Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q unit20120826 #75

Merged
merged 108 commits into from Sep 4, 2012
Merged

Q unit20120826 #75

merged 108 commits into from Sep 4, 2012

Conversation

thenewguy
Copy link

pull request #4.

This pull request introduces QUnit javascript tests to facilitate browser testing

…the equivalent of make testclean without requiring make
… path to use for generating the dotted path.
…commit so that the attached test passes without causing any other tests to fail (verified on Windows)
… after runpy.run_module from http://docs.python.org/library/runpy.html#runpy.run_module

Currently only sets __name__ and __builtins__.

__name__ is set to "__main__" so that the standard if __name__ == "__main__" type code block can be used.

__builtins__ is set to the pyjaco __builtins__ object.  Modules namespace __builtins__ so that it doesn't matter what the global builtin variable is named.
…ackage and move the special_global dict there so that they could be imported into the main pyjaco compiler and the python compiler without errors.
…bose, but it is easy to see the order of preference for determining the final name.
…s runpy.run_module returns "the resulting module globals dictionary"
…e visit_AssignSimple added "var " to module references
… scope function definition for the function name being called in visit_Call, it is unclear where the call should reference. Push this decision into javascript with preference on local scope.
…pt exceptions can be translated to their python equivalents. Specifically for this commit, translate JavaScript ReferenceError to Python NameError
…s to fail based on how many arguments are sent to it
…llow test numbers to differ from the QUnit page if tests are skipped due to failing in python or etc
… to hold test output in the browser until it is needed. Then join it with newlines.
…m tests because the way load was being stripped wasn't resilient to future changes to output
… test in strict mode. QUnit tests were not previously being run in strict mode.
… Otherwise, concatenating the builtins with the compiled code causes errors.
@chrivers chrivers merged commit a269bf3 into chrivers:devel Sep 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants