Compare commits
No commits in common. "07d4fab38d1340184c5e0b1039e7ef60d72c2e12" and "f240e8d5c6bcdb5a5b1d9de8ade1a3fdd16931e5" have entirely different histories.
07d4fab38d
...
f240e8d5c6
2 changed files with 10 additions and 4 deletions
|
|
@ -308,9 +308,6 @@ if( typeof AFRAME != 'undefined '){
|
|||
httpfs: "com/isoterminal/feat/httpfs.js",
|
||||
autorestore: "com/isoterminal/feat/autorestore.js",
|
||||
}
|
||||
if( document.location.hash.match(/#test/) || this.data.debug ){
|
||||
features['tests'] = "tests/index.js"
|
||||
}
|
||||
if( this.data.emulator == 'fbterm' ){
|
||||
features['fbtermjs'] = "com/isoterminal/term.js"
|
||||
features['fbterm'] = "com/isoterminal/feat/term.js"
|
||||
|
|
@ -370,6 +367,7 @@ if( typeof AFRAME != 'undefined '){
|
|||
this.term.addEventListener('ready', (e) => {
|
||||
instance.dom.classList.remove('blink')
|
||||
this.term.emit('status',"running")
|
||||
if( this.data.debug ) this.runTests()
|
||||
})
|
||||
|
||||
this.term.addEventListener('status', function(e){
|
||||
|
|
@ -416,6 +414,14 @@ if( typeof AFRAME != 'undefined '){
|
|||
}
|
||||
},
|
||||
|
||||
runTests: async function(){
|
||||
await AFRAME.utils.require({
|
||||
"test_util": "tests/util.js",
|
||||
"test_isoterminal":"tests/ISOTerminal.js"
|
||||
})
|
||||
console.test.run()
|
||||
},
|
||||
|
||||
setupPasteDrop: function(){
|
||||
this.el.addEventListener('pasteFile', (e) => {
|
||||
e.preventDefault() // prevent bubbling up to window (which is triggering this initially)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ ISOTerminal.prototype.bootMenu = function(e){
|
|||
}
|
||||
}
|
||||
|
||||
ISOTerminal.addEventListener('bootMenu', function(e){this.bootMenu(e) })
|
||||
ISOTerminal.addEventListener('bootMenu', function(e){ this.bootMenu(e) } )
|
||||
|
||||
ISOTerminal.prototype.boot = async function(e){
|
||||
// set environment
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue