fix manual test

pull/1/head
yann300 7 years ago
parent 2702a1eaf7
commit acb7526224
  1. 3
      test-browser/plugin/index.html
  2. 5
      test-browser/plugin/plugin.js

@ -37,7 +37,7 @@
<body>
<div>PLUGIN</div>
<input type="text" id="filename"></input>
<input type="text" id="valuetosend"></input> <br>
<input type="text" id="valuetosend"></input> <input type="text" id="valuetosend2"></input> <br>
<input type="button" id="testmessageadd">add config</input> <br>
<input type="button" id="testmessageremove">remove config</input> <br>
<input type="button" id="testmessagerget">get config</input> <br>
@ -47,6 +47,7 @@
<input type="button" id="setcontentof">setcontentof</input> <br>
<input type="button" id="getcontentof">getcontentof</input> <br>
<input type="button" id="getcurrent">getcurrent</input> <br>
<input type="button" id="sethighlight">sethighlight</input> <br>
<br>
<div id='compilationdata'></div>
</body>

@ -68,4 +68,9 @@ window.onload = function () {
extension.call('editor', 'getCurrentFile', [],
function (error, result) { console.log(error, result) })
})
document.querySelector('input#sethighlight').addEventListener('click', function () {
extension.call('editor', 'highlight', [document.getElementById('filename').value, document.getElementById('valuetosend').value, document.getElementById('valuetosend2').value],
function (error, result) { console.log(error, result) })
})
}

Loading…
Cancel
Save