Skip to content
Latest commit c96b118 @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
imports Fixed relative imports within __init__.py
ArgsTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
AttributeTest.py Bugfix hasattr
Base64ModuleTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
BoolTest.py
BuiltinTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
ClassTest.py
CompileTest.py
CsvModuleTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
DatetimeModuleTest.py
DictTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
ExceptionTest.py
Factory2.py
FunctionTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
GeneratorTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
HashableTest.py Add HashableTest
JSOTest.py
LibTest.html
LibTest.py Get all tests to run, atleast the mechanism to run the tests.
ListTest.py
LongTest.py Fix mixed type bit operations
LongTypeTest.py
LoopTest.py
MD5Test.py replace JS params using @{{...}}
MathModuleTest.py Forgot to save fix for issue #633
NameTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
NoInlineCodeTest.py
README more corrections - document use of python to test LibTest.py
RandomModuleTest.py
ReModuleTest.py
RunTests.py
SetTest.py
StringIOModuleTest.py Some more descriptive texts in StringIOModuleTest
StringTest.py
Syntax27Test.py modified pyjslib.py sets, so that None is handled properly, modified
TemplateStringTest.py
TimeModuleTest.py Added %S parsing for time.strptime
TupleTest.py Added tuple.__str__ back in (and added tests)
TypeCompatibilityTest.py #222 looks like working
UnitTest.py
UrllibModuleTest.py
VarsTest.py find * -name '*.py' | xargs sed -i -r 's,\s+$,,'
WindowTest.py
WithTest.py
__main__.py
_badsyntaxmodule.py Tests for try: import badcode except: pass, #592
_importtimeerror.py Tests for try: import badcode except: pass, #592
_untranslatablemodule.py
all_checks.sh
builtin.py
check_coverage.sh
check_js_lint.sh
compile_only.py wrong url
foo.py
jsl.pyjs.conf - lint checks and fixes
pyv8test.sh modified pyjslib.py sets, so that None is handled properly, modified
runzonetest.sh
write.py Changes to get libtest working for translator_dict

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.