My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

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 "environment" 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.

Show details Hide details

Change log

r14 by cowbertvonmoo on Feb 12, 2009   Diff
Revised the trivial example and added an
absolute identifier test.
Go to: 
Project members, sign in to write a code review

Older revisions

r3 by cowbertvonmoo on Feb 05, 2009   Diff
Added a fresh batch of feature tests.
All revisions of this file

File info

Size: 1432 bytes, 50 lines
Hosted by Google Code