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/fileExplorer.js

39 lines
1012 B

'use strict'
var examples = require('../../src/app/editor/example-contracts')
var init = require('../helpers/init')
var sauce = require('./sauce')
var sources = [
{'browser/ballot.sol': examples.ballot.content,
'browser/test/client/credit.sol': '',
'browser/src/voting.sol': '',
'browser/src/leasing.sol': '',
'browser/src/gmbh/contract.sol': false,
'browser/src/gmbh/test.sol': false,
'browser/src/gmbh/company.sol': false,
'browser/src/gmbh/node_modules/ballot.sol': false,
'browser/src/ug/finance.sol': false,
'browser/app/solidity/mode.sol': true,
'browser/app/ethereum/constitution.sol': true
}
]
module.exports = {
before: function (browser, done) {
init(browser, done)
},
'@sources': function () {
return sources
},
'FileExplorer': function (browser) {
runTests(browser)
},
tearDown: sauce
}
function runTests (browser, testData) {
browser
.waitForElementPresent('#filepanel ul li', 10000, true, function () {})
.end()
}