diff options
author | hackademix <giorgio@maone.net> | 2018-10-02 15:50:23 +0200 |
---|---|---|
committer | hackademix <giorgio@maone.net> | 2018-10-02 23:00:21 +0200 |
commit | 43502637288f9f60019be2759e5049d0fe9377fe (patch) | |
tree | c654cea77ca8abaa17df3adc5d1ce0114ee4544a /html/display_panel/content/main_panel.js | |
parent | 37774e035b5ebf53e2fde92b11e4f3419b53909c (diff) |
Jasmine-based automated tests suite.
Diffstat (limited to 'html/display_panel/content/main_panel.js')
-rw-r--r-- | html/display_panel/content/main_panel.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/html/display_panel/content/main_panel.js b/html/display_panel/content/main_panel.js index c55b167..2509545 100644 --- a/html/display_panel/content/main_panel.js +++ b/html/display_panel/content/main_panel.js @@ -38,6 +38,18 @@ myPort.postMessage({"update": true, tabId: parseInt(currentReport && currentRepo // Display the actual extension version Number document.querySelector("#version").textContent = browser.runtime.getManifest().version; +// Enable autotest button if this is a test-enabled build / session +(async () => { + if (await Test.getURL()) { + let button = document.querySelector("#autotest"); + button.style.display = "block"; + button.onclick = async () => { + await Test.getTab(true); + close(); + } + } +})(); + var liTemplate = document.querySelector("#li-template"); liTemplate.remove(); |