remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/test-browser/commands/noWorkerErrorFor.js

29 lines
827 B

5 years ago
const EventEmitter = require('events')
class NoWorkerErrorFor extends EventEmitter {
5 years ago
command (version) {
5 years ago
this.api.perform((done) => {
5 years ago
noWorkerErrorFor(this.api, version, () => {
5 years ago
done()
this.emit('complete')
})
})
return this
}
}
5 years ago
function noWorkerErrorFor (browser, version, callback) {
5 years ago
browser
.setSolidityCompilerVersion(version)
5 years ago
.pause(2000)
5 years ago
.waitForElementPresent('*[data-id="compiledErrors"]')
.notContainsText('*[data-id="compiledErrors"]', 'worker error:undefined')
.notContainsText('*[data-id="compiledErrors"]', 'Uncaught RangeError: Maximum call stack size exceeded')
.notContainsText('*[data-id="compiledErrors"]', 'RangeError: Maximum call stack size exceeded')
5 years ago
.perform(() => {
callback()
5 years ago
})
}
module.exports = NoWorkerErrorFor