JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
compliance
extensions
security
template
trivial
README

README

trivial/
    using this directory as your js std library path,
    load the "program" module.  It should
    alert you with the results of
    an increment function.

compliance/*

    for a module loader to be compliant,
    it must run and pass every test in
    this directory.

    All of these tests presume the existence of
    an "sys" free variable with a "print"
    method for test reporting.  Tests call
    the "print" method with a "message"
    and a "label" argument that is one of
    "pass" or "fail".  "window.console.log"
    in most browsers suffices.

    The test must be run with its directory
    as the standard library path so that
    absolute identifiers will reference
    modules in that directory.

    All of these tests write a "DONE" info
    message to confirm that they ran completely.

security/*
    each directory here contains
    a test that verifies that a module
    can get capabilities from its environment
    without accessing free variables.

extensions/*
    each of these tests corresponds to
    an experimental feature, like
    "include" or implicit locally bound "exports".

global/*
    each directory here contains
    a program.html and a program.js.
    The program.html loads the transitive
    dependencies of program.js explicitly
    using script tags.  These tests 
    demonstrate compliant modules working
    in both <script> tags and module 
    loaders.