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
Q unit20120826 #75
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…iable definitions. use it for class def
…the equivalent of make testclean without requiring make
… path to use for generating the dotted path.
…for checking if a name is in scope
…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.
…andard" if __name__ == "__main__" approach.
…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.
…o not define them yet.
…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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pull request #4.
This pull request introduces QUnit javascript tests to facilitate browser testing