Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test262
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pmaksimo
test262
Commits
11d5b4f1
Commit
11d5b4f1
authored
8 years ago
by
jugglinmike
Committed by
Leo Balter
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Document requirements for module tests
parent
1e6cbbf7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
INTERPRETING.md
+26
-1
26 additions, 1 deletion
INTERPRETING.md
with
26 additions
and
1 deletion
INTERPRETING.md
+
26
−
1
View file @
11d5b4f1
...
@@ -75,6 +75,30 @@ semicolon (`;`) and newline character (`\n`):
...
@@ -75,6 +75,30 @@ semicolon (`;`) and newline character (`\n`):
This must precede any additional text modifications described by test metadata.
This must precede any additional text modifications described by test metadata.
### Modules
Test262 includes tests for ECMAScript 2015 module code, denoted by the "module"
metadata flag. Files bearing a name ending in
`_FIXTURE.js`
should not be
interpreted as standalone tests; they are intended to be referenced by test
files.
All module specifiers used by Test262 begin with the character sequence
`./`
.
The remaining characters should be interpreted as the name of a file within the
same directory as the file under test. The contents of this file must be
interpreted as UTF-8-encoded text and supplied to the Source Text Module
Record's ParseModule abstract operation. The result of that operation must be
returned by the implementation-defined HostResolveImportedModule directly.
For example, consider a test file located at
`test/language/import/nested/index.js`
with the following contents:
```
js
import
*
as
ns
from
'
./dep.js
'
;
```
Implementers should attempt to resolve this module specifier by loading a file
located at
`test/language/import/nested/dep.js`
.
## Test Results
## Test Results
By default, tests signal failure by generating an uncaught exception. If
By default, tests signal failure by generating an uncaught exception. If
...
@@ -167,7 +191,8 @@ following strings:
...
@@ -167,7 +191,8 @@ following strings:
In addition, this flag negates the default requirement to execute the test
In addition, this flag negates the default requirement to execute the test
both in strict mode and in non-strict mode. In other words, the
both in strict mode and in non-strict mode. In other words, the
transformation described by the section titled "Strict Mode" must
**not**
be
transformation described by the section titled "Strict Mode" must
**not**
be
applied to these tests.
applied to these tests. Refer to the section titled "Modules" for more
information on interpreting these tests.
*Example*
*Example*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment