Skip to content
Find file History
Latest commit c96b118 Oct 26, 2013 @sarvi sarvi Get all tests to run, atleast the mechanism to run the tests.
Turn them all into console scripts that can be installed and run
from pip install directory. Get pyv8run to be an installed
executable script. Turn scripts/test into pyjstest and run from
installed location as well

Remove the scripts/directory and the scripts there that is not needed
anymore.
..
Failed to load latest commit information.
I18N Misc bugfixes in error reporting and build systems. Nov 22, 2011
imports Fixed relative imports within __init__.py Jul 26, 2011
ArgsTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
AttributeTest.py Bugfix hasattr Jul 23, 2012
Base64ModuleTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
BoolTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
BuiltinTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
ClassTest.py fixed spelling error in ClassTest.py Jul 7, 2012
CompileTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
CsvModuleTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
DatetimeModuleTest.py Added non-pythoninc time._strptime() for use in datetime module Aug 10, 2011
DictTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
ExceptionTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
Factory2.py add Factory test to FunctionTest Jul 12, 2009
FunctionTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
GeneratorTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
HashableTest.py Add HashableTest Nov 2, 2011
JSOTest.py Changes to get libtest working for translator_dict Jul 22, 2011
LibTest.html fix title Apr 14, 2012
LibTest.py Get all tests to run, atleast the mechanism to run the tests. Oct 26, 2013
ListTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
LongTest.py Fix mixed type bit operations Oct 15, 2009
LongTypeTest.py Implemented an int type and a long type Oct 10, 2009
LoopTest.py Performance enhancement for enumerate (and a little for 'for in obj')… Oct 20, 2009
MD5Test.py replace JS params using @{{...}} Aug 20, 2010
MathModuleTest.py Forgot to save fix for issue #633 Aug 8, 2011
NameTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
NoInlineCodeTest.py Generate code that's compatible with google closure advanced optimali… Jun 20, 2012
README more corrections - document use of python to test LibTest.py Mar 19, 2009
RandomModuleTest.py Make RandomModuleTest work with python 2.6 Oct 15, 2009
ReModuleTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
RunTests.py Moved the RunTests class from LibTest to a separate file (RunTests.py), May 20, 2010
SetTest.py libtest/SetTest updated for known issue #571 Apr 10, 2011
StringIOModuleTest.py Some more descriptive texts in StringIOModuleTest May 9, 2011
StringTest.py Bugfix string rsplit Oct 3, 2012
Syntax27Test.py modified pyjslib.py sets, so that None is handled properly, modified Aug 1, 2012
TemplateStringTest.py issue #658 fixed template strings substitution, thanks to phil charle… Dec 9, 2011
TimeModuleTest.py Added %S parsing for time.strptime May 29, 2012
TupleTest.py Added tuple.__str__ back in (and added tests) Mar 23, 2012
TypeCompatibilityTest.py #222 looks like working Sep 15, 2009
UnitTest.py Marked tests added by Daniel Kluev that are not working atm. Feb 5, 2012
UrllibModuleTest.py Implements parts of urllib (quote, urlencode) Jul 28, 2009
VarsTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
WindowTest.py fix title Apr 14, 2012
WithTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
__main__.py Some more fixes for setting compile options for libtest Apr 26, 2011
_badsyntaxmodule.py Tests for try: import badcode except: pass, #592 Apr 24, 2011
_importtimeerror.py Tests for try: import badcode except: pass, #592 Apr 23, 2011
_untranslatablemodule.py Tests for try: import badcode except: pass, #592 Apr 23, 2011
all_checks.sh wrong url Mar 30, 2012
builtin.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,' May 14, 2012
check_coverage.sh wrong url Mar 30, 2012
check_js_lint.sh wrong url Mar 30, 2012
compile_only.py wrong url Mar 30, 2012
foo.py thanks to kees 2-pass global-identification stage, Stefan Schwarzer <… Jul 6, 2009
jsl.pyjs.conf - lint checks and fixes Oct 28, 2009
pyv8test.sh modified pyjslib.py sets, so that None is handled properly, modified Aug 2, 2012
runzonetest.sh wrong url Mar 30, 2012
write.py Changes to get libtest working for translator_dict Jul 22, 2011

README

These are unit tests for the pyjamas libraries.  Compile them as usual
with ./build.sh:

    ../../bin/pyjsbuild LibTest.py

The tests can _also_ be executed using standard python:

    python LibTest.py

Priority should be given to getting the test correct using standard
python.  For example, at the time of writing, when the ability to run
LibTest.py with standard python was added, four basic tests failed:

    <b>String Test failed (testSplit) : </b>' this is  a rather long string  ' 
                                            != ' this is  a rather long string '
    <b>List Test failed (testSortCmp) : </b>assertion failed
    <b>Attribute Test failed (testSetAttr) : </b>2 != 1
    <b>Dict Test failed (testStringKeys) : </b>"'notthere'" != 
                                                'KeyError: notthere'

Yet - these tests are successful in pyjamas!

Something went wrong with that request. Please try again.