Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsexplain
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
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
Verified Software
jsexplain
Commits
b9465933
Commit
b9465933
authored
8 years ago
by
Thomas Wood
Browse files
Options
Downloads
Patches
Plain Diff
Fix js test suite for path change, error if t262 missing
parent
b81026f9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+2
-1
2 additions, 1 deletion
Makefile
test/helpers/test262.js
+2
-4
2 additions, 4 deletions
test/helpers/test262.js
test/interpreter.js
+1
-1
1 addition, 1 deletion
test/interpreter.js
with
5 additions
and
6 deletions
Makefile
+
2
−
1
View file @
b9465933
...
...
@@ -21,9 +21,10 @@ jsjsref: generator
$(
MAKE
)
-C
jsref
test_init
:
git submodule update
--init
test
/test262
npm
install
test
:
generator
test
:
jsjsref
node_modules/.bin/mocha
.PHONY
:
publish jsjsref generator test_init test
This diff is collapsed.
Click to expand it.
test/helpers/test262.js
+
2
−
4
View file @
b9465933
...
...
@@ -38,12 +38,10 @@ before(function(done) {
walk
(
test262path
)
.
pipe
(
filter
.
obj
(
file
=>
file
.
stats
.
isFile
()
&&
file
.
path
.
endsWith
(
"
.js
"
)))
.
on
(
'
readable
'
,
function
()
{
var
item
;
while
((
item
=
this
.
read
()))
{
tests
.
push
(
item
.
path
);
}
})
.
on
(
'
data
'
,
(
item
)
=>
{
tests
.
push
(
item
.
path
);
})
.
on
(
'
end
'
,
function
()
{
describe
(
"
test262
"
,
function
()
{
if
(
tests
.
length
===
0
)
{
throw
new
Error
(
"
Unable to find any test262 tests (uninitialised git submodule?)
"
)
}
tests
.
forEach
(
item
=>
{
describe
(
item
,
function
()
{
// Preseed test arguments with safe defaults
...
...
This diff is collapsed.
Click to expand it.
test/interpreter.js
+
1
−
1
View file @
b9465933
...
...
@@ -2,7 +2,7 @@
var
esprima
=
require
(
'
esprima
'
);
var
esprimaToAST
=
require
(
'
../esprima-to-ast.js
'
).
esprimaToAST
;
var
JsInterpreter
=
require
(
'
../
generator/tests/
jsref/assembly.js
'
);
var
JsInterpreter
=
require
(
'
../jsref/assembly.js
'
);
require
(
'
./parser.js
'
);
var
test262tests
=
require
(
'
./helpers/test262.js
'
);
...
...
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