add manual testing

pull/3094/head
yann300 6 years ago
parent 3ba8f4ba17
commit 5fbc6a15de
  1. 3
      test-browser/plugin/index.html
  2. 15
      test-browser/plugin/plugin.js

@ -44,6 +44,9 @@
<input type="button" id="testcontractcreation">oraclize contract creation</input> <br> <input type="button" id="testcontractcreation">oraclize contract creation</input> <br>
<input type="button" id="testaccountcreation">account creation</input> <br> <input type="button" id="testaccountcreation">account creation</input> <br>
<input type="button" id="testchangetitle">change title</input> <br> <input type="button" id="testchangetitle">change title</input> <br>
<input type="button" id="setcontentof">setcontentof</input> <br>
<input type="button" id="getcontentof">getcontentof</input> <br>
<input type="button" id="getcurrent">getcurrent</input> <br>
<br> <br>
<div id='compilationdata'></div> <div id='compilationdata'></div>
</body> </body>

@ -53,4 +53,19 @@ window.onload = function () {
extension.call('app', 'updateTitle', ['changed title ' + k++], extension.call('app', 'updateTitle', ['changed title ' + k++],
function (error, result) { console.log(error, result) }) function (error, result) { console.log(error, result) })
}) })
document.querySelector('input#setcontentof').addEventListener('click', function () {
extension.call('editor', 'setFile', [document.getElementById('filename').value, document.getElementById('valuetosend').value],
function (error, result) { console.log(error, result) })
})
document.querySelector('input#getcontentof').addEventListener('click', function () {
extension.call('editor', 'getFile', [document.getElementById('filename').value],
function (error, result) { console.log(error, result) })
})
document.querySelector('input#getcurrent').addEventListener('click', function () {
extension.call('editor', 'getCurrentFile', [],
function (error, result) { console.log(error, result) })
})
} }

Loading…
Cancel
Save