diff --git a/README.md b/README.md index 3d04d2e..2d2f1e4 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ The highlight.js minimal script included in this module provides support for 22 ## License -The code relative to the add-on itself is placed under the Mozilla Public License v. 2.0 (see file [LICENSE][6]). +The code relative to the add-on itself is placed under the Mozilla Public License v. 2.0 (see file [LICENSE][5]). The code for highlight.js (_i.e._ everything under the `data/highlightjs` directory) was released under the BSD License (see relative [LICENSE][6] file for details). @@ -49,7 +49,7 @@ Other than on the [hilight.js homesite][1], you can find a list of supported lan [1]: https://highlightjs.org [2]: https://blog.mozilla.org/addons/2015/02/10/extension-signing-safer-experience [3]: https://addons.mozilla.org/firefox/addon/enlight -[4]: https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Getting_started) +[4]: https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Getting_started [5]: https://github.com/Qeole/Enlight/blob/master/LICENSE [6]: https://github.com/isagalaev/highlight.js/blob/master/LICENSE [7]: https://github.com/Qeole/Enlight/blob/master/data/languages.json diff --git a/data/languages-all.json b/data/languages-all.json index b027820..fa68196 100644 --- a/data/languages-all.json +++ b/data/languages-all.json @@ -1,5 +1,5 @@ { -"auto" : "", +"auto" : "", "apache" : "Apache", "bash" : "Bash", "cpp" : "C, C++", diff --git a/data/languages.json b/data/languages.json index 6102fe0..dbf54ff 100644 --- a/data/languages.json +++ b/data/languages.json @@ -1,5 +1,5 @@ { -"auto" : "", +"auto" : "", "apache" : "Apache", "bash" : "Bash", "cpp" : "C, C++", diff --git a/enlight.xpi b/enlight.xpi index 51f25ae..30003bd 100644 Binary files a/enlight.xpi and b/enlight.xpi differ diff --git a/test/test-main.js b/test/test-main.js index dae257b..934e080 100644 --- a/test/test-main.js +++ b/test/test-main.js @@ -55,9 +55,11 @@ exports["test main03 highlight blank"] = function(assert, done) { clickInPanel("auto"); main.doHighlight(); utils.waitUntil(function(){return !main.panel.isShowing;}).then(() => { - assert.ok(!main.button.state("tab").checked, "03c button toggled off"); - assert.ok(!main.panel.isShowing, "03c panel is closed"); - done(); + utils.waitUntil(function(){return !main.button.state("tab").checked}).then(() => { + assert.ok(!main.button.state("tab").checked, "03c button toggled off"); + assert.ok(!main.panel.isShowing, "03c panel is closed"); + done(); + }); }); }); };