adding usingWebWorker test

pull/11/head
LianaHus 5 years ago committed by ioedeveloper
parent 0fb6b05588
commit dfaa3c2863
  1. 13
      apps/remix-ide/src/app/editor/example-contracts.js
  2. 2
      apps/remix-ide/src/app/tabs/compile-tab.js
  3. 19973
      package-lock.json
  4. 29
      test-browser/tests/usingWebWorker.test.js

@ -1,5 +1,15 @@
'use strict' 'use strict'
const basic = `pragma solidity >=0.2.0 <0.7.0;
/**
* @title Basic contract
*/
contract Basic {
uint someVar;
constructor() public {}
}`
const storage = `pragma solidity >=0.4.22 <0.7.0; const storage = `pragma solidity >=0.4.22 <0.7.0;
/** /**
@ -245,5 +255,6 @@ module.exports = {
storage: { name: '1_Storage.sol', content: storage }, storage: { name: '1_Storage.sol', content: storage },
owner: { name: '2_Owner.sol', content: owner }, owner: { name: '2_Owner.sol', content: owner },
ballot: { name: '3_Ballot.sol', content: ballot }, ballot: { name: '3_Ballot.sol', content: ballot },
ballot_test: { name: '4_Ballot_test.sol', content: ballotTest } ballot_test: { name: '4_Ballot_test.sol', content: ballotTest },
basic: { name: 'basic.sol', content: basic }
} }

@ -411,7 +411,7 @@ class CompileTab extends ViewPlugin {
render () { render () {
if (this._view.el) return this._view.el if (this._view.el) return this._view.el
this.onActivationInternal() this.onActivationInternal()
this._view.errorContainer = yo`<div class="${css.errorBlobs} p-4"></div>` this._view.errorContainer = yo`<div class="${css.errorBlobs} p-4" data-id="compiledErrors" ></div>`
this._view.contractSelection = this.contractSelection() this._view.contractSelection = this.contractSelection()
this._view.compilerContainer = this.compilerContainer.render() this._view.compilerContainer = this.compilerContainer.render()
this.compilerContainer.activate() this.compilerContainer.activate()

19973
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,29 @@
'use strict'
var examples = require('../../src/app/editor/example-contracts')
var init = require('../helpers/init')
var sauce = require('./sauce')
var sources = [
{'browser/basic.sol': {content: examples.basic.content}}
]
module.exports = {
before: function (browser, done) {
init(browser, done)
},
'@sources': function () {
return sources
},
'Using Web Worker': function (browser) {
browser
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000)
.addFile('basic.sol', sources[0]['browser/basic.sol'])
.noWorkerErrorFor('soljson-v0.3.4+commit.7dab890.js')
.noWorkerErrorFor('soljson-v0.6.5+commit.f956cc89.js')
.noWorkerErrorFor('soljson-v0.6.8-nightly.2020.5.14+commit.a6d0067b.js')
.noWorkerErrorFor('soljson-v0.6.0-nightly.2019.12.17+commit.d13438ee.js')
.noWorkerErrorFor('soljson-v0.4.26+commit.4563c3fc.js')
},
tearDown: sauce
}
Loading…
Cancel
Save