Commit acb75262 authored by yann300's avatar yann300

fix manual test

parent 2702a1ea
......@@ -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) })
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment