testFromSource (content, path = 'browser/unit_test.sol') {
    return new Promise((resolve, reject) => {
      let runningTest = {}
      runningTest[path] = { content }
      const {currentVersion, evmVersion, optimize} = this.compileTab.getCurrentCompilerConfig()
      const currentCompilerUrl = urlFromVersion(currentVersion)
      const compilerConfig = {
        currentCompilerUrl,
        evmVersion,
        optimize,
        usingWorker: canUseWorker(currentVersion)
      }
      remixTests.runTestSources(runningTest, compilerConfig, () => {}, () => {}, (error, result) => {
        if (error) return reject(error)
        resolve(result)
      }, (url, cb) => {
        return this.compileTab.compileTabLogic.importFileCb(url, cb)
      })
    })
  }
/*
    Test is not associated with the UI
  */
Test is not associated with the UI
Test is not associated with the UI
testFromSource (content, path = 'browser/unit_test.sol') {
    return new Promise((resolve, reject) => {
      let runningTest = {}
      runningTest[path] = { content }
      const {currentVersion, evmVersion, optimize} = this.compileTab.getCurrentCompilerConfig()
      const currentCompilerUrl = urlFromVersion(currentVersion)
      const compilerConfig = {
        currentCompilerUrl,
        evmVersion,
        optimize,
        usingWorker: canUseWorker(currentVersion)
      }
      remixTests.runTestSources(runningTest, compilerConfig, () => {}, () => {}, (error, result) => {
        if (error) return reject(error)
        resolve(result)
      }, (url, cb) => {
        return this.compileTab.compileTabLogic.importFileCb(url, cb)
      })
    })
  }
testFromSource ( content , path = 'browser/unit_test.sol' ) { return new Promise ( ( resolve , reject ) => { let runningTest = { } runningTest [ path ] = { content } const { currentVersion , evmVersion , optimize } = this . compileTab . getCurrentCompilerConfig ( ) const currentCompilerUrl = urlFromVersion ( currentVersion ) const compilerConfig = { currentCompilerUrl , evmVersion , optimize , usingWorker : canUseWorker ( currentVersion ) } remixTests . runTestSources ( runningTest , compilerConfig , ( ) => { } , ( ) => { } , ( error , result ) => { if ( error ) return reject ( error ) resolve ( result ) } , ( url , cb ) => { return this . compileTab . compileTabLogic . importFileCb ( url , cb ) } ) } ) }
Test is not associated with the UI
Test is not associated with the UI