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/tests/simpleContract.js

33 lines
762 B

'use strict'
var contractHelper = require('../helpers/contracts')
var init = require('../helpers/init')
var sauce = require('./sauce')
8 years ago
var sources = {
'sources': {
8 years ago
'browser/Untitled.sol': 'contract test1 {} contract test2 {}'
}
}
8 years ago
module.exports = {
before: function (browser, done) {
init(browser, done)
},
'@sources': function () {
return sources
},
8 years ago
'Simple Contract': function (browser) {
runTests(browser)
},
tearDown: sauce
}
8 years ago
function runTests (browser) {
8 years ago
browser
.waitForElementVisible('.newFile', 10000)
7 years ago
.click('.compileView')
8 years ago
contractHelper.testContracts(browser, sources.sources['browser/Untitled.sol'], ['browser/Untitled.sol:test1', 'browser/Untitled.sol:test2'], function () {
browser.end()
})
8 years ago
}