mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Cleanup.
This commit is contained in:
parent
f7361d9654
commit
5e9bc31c58
@ -341,8 +341,6 @@ module.exports = class MetamaskController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// called from popup
|
||||
setRpcTarget (rpcTarget) {
|
||||
this.configManager.setRpcTarget(rpcTarget)
|
||||
|
@ -3,25 +3,37 @@ QUnit.test('agree to terms', function (assert) {
|
||||
|
||||
// Select the mock app root
|
||||
var app = $('iframe').contents().find('#app-content .mock-app-root')
|
||||
// var button = $('.agree')
|
||||
// button.removeAttr('disabled')
|
||||
|
||||
app.find('.markdown').prop('scrollTop', 100000000)
|
||||
|
||||
|
||||
// Agree to terms
|
||||
// wait().then(function() {
|
||||
// app.find('button').click()
|
||||
// wait().then(function() {
|
||||
//
|
||||
// var title = app.find('h1').text()
|
||||
// assert.equal(title, 'MetaMask', 'title screen')
|
||||
//
|
||||
// var buttons = app.find('button')
|
||||
// assert.equal(buttons.length, 2, 'two buttons: create and restore')
|
||||
//
|
||||
// done()
|
||||
// })
|
||||
// })
|
||||
|
||||
wait().then(function() {
|
||||
app.find('button').click()
|
||||
wait().then(function() {
|
||||
}).then(function() {
|
||||
return wait()
|
||||
}).then(function() {
|
||||
var title = app.find('h1').text()
|
||||
assert.equal(title, 'MetaMask', 'title screen')
|
||||
|
||||
var title = app.find('h1').text()
|
||||
assert.equal(title, 'MetaMask', 'title screen')
|
||||
var buttons = app.find('button')
|
||||
assert.equal(buttons.length, 2, 'two buttons: create and restore')
|
||||
|
||||
var buttons = app.find('button')
|
||||
assert.equal(buttons.length, 2, 'two buttons: create and restore')
|
||||
|
||||
done()
|
||||
})
|
||||
done()
|
||||
})
|
||||
|
||||
// Wait for view to transition:
|
||||
|
@ -44,6 +44,9 @@ AccountDetailScreen.prototype.render = function () {
|
||||
var props = this.props
|
||||
var selected = props.address || Object.keys(props.accounts)[0]
|
||||
var identity = props.identities[selected]
|
||||
console.log(props)
|
||||
console.log(selected)
|
||||
console.log(identity)
|
||||
var account = props.accounts[selected]
|
||||
const { network } = props
|
||||
|
||||
|
@ -92,7 +92,7 @@ DisclaimerScreen.prototype.render = function () {
|
||||
|
||||
h('button', {
|
||||
style: { marginTop: '18px' },
|
||||
disabled: disabled,
|
||||
disabled,
|
||||
onClick: () => this.props.dispatch(actions.agreeToDisclaimer()),
|
||||
}, disabled ? 'Scroll Down to Enable' : 'I Agree'),
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user