Skip to content

Commit

Permalink
makefile : fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
luffah committed Apr 9, 2021
1 parent 0f9f497 commit 5288879
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ css:
# --output="$${TGTDIR}/$${TGT}";\
# done

testfs:
firefox --jsconsole --safe-mode src/testing.html?filesystem
testfs: assemble
firefox --jsconsole --safe-mode ${GAME}/webroot/testing.html?filesystem

help: ## Show this help
@sed -n \
Expand Down
7 changes: 3 additions & 4 deletions game/terminus/webroot/testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head id='head'>
<meta charset="utf-8" />
<script type="text/javascript" src="js.engine/utils/xhr.js"></script>
<script type="text/javascript" src="js.engine/utils/testing.js"></script>
<script>
/*
* Load index.html and inject test scripts inside
Expand All @@ -13,11 +14,9 @@
*/
xhr_load(
"index.html",
[ '../tests/Testing.js' ].concat(
window.location.search.substr(1).split(',').map(
(s) => '../tests/test_' + s + '.js')
),
'css/terminus.testing.css'
(s) => '../tests/test_' + s + '.js'),
'css/terminus.testing.css' // FIXME where is this file
)
</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions game/terminus/webroot/testlang.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html>
<head id='head'>
<meta charset="utf-8" />
<script type="text/javascript" src="engine/utils/xhr.js"></script>
<script type="text/javascript" src="./js.engine/utils/xhr.js"></script>
<script>
xhr_load(
"index.html",
window.location.search.substr(1).map(() => {
'./js/_build/terminus.dialog.'+__lang+'.js'
'./js.build/dialog.'+__lang+'.js'
})
)
</script>
Expand Down

0 comments on commit 5288879

Please sign in to comment.