Overview
| Comment: | [core][js] tests initialization |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | core | webext2 |
| Files: | files | file ages | folders |
| SHA3-256: |
af95395956e5de0d30625b1cd78b06ae |
| User & Date: | olr on 2017-08-03 11:41:31 |
| Other Links: | branch diff | manifest | tags |
Context
|
2017-08-04
| ||
| 05:17 | [core][js] try to remove some warnings check-in: 25be7eb67b user: olr tags: core, webext2 | |
|
2017-08-03
| ||
| 11:41 | [core][js] tests initialization check-in: af95395956 user: olr tags: core, webext2 | |
| 11:06 | [core][js] gc_engine initialization check-in: 4de2209cf9 user: olr tags: core, webext2 | |
Changes
Modified gc_core/js/lang_core/gc_engine.js from [85c1383912] to [4d4d4ec095].
| ︙ | |||
276 277 278 279 280 281 282 | 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | - + - + |
reactivateRule: function (sRuleId) {
_aIgnoredRules.delete(sRuleId);
},
listRules: function (sFilter=null) {
// generator: returns tuple (sOption, sLineId, sRuleId)
try {
|
| ︙ |
Modified gc_core/js/tests.js from [373a8fcfff] to [c744b064be].
1 2 3 4 5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | - + + - + - | // JavaScript "use strict"; |
| ︙ | |||
76 77 78 79 80 81 82 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | - + |
}
catch (e) {
helpers.logerror(e);
}
if (bShowUntested) {
i = 0;
|
| ︙ | |||
122 123 124 125 126 127 128 | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | - + - + |
return " ".repeat(sLine.length);
};
_getFoundErrors (sLine, bDebug, sOption) {
try {
let aErrs = [];
if (sOption) {
|
| ︙ |
Modified gc_lang/fr/webext/gce_worker.js from [1c20e4bba6] to [172934d86f].
| ︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | - - - - - - - - - - - - - - - - - + - + - - + + - + - - + + - + - + - + - + - - + + - - + + - - + + - - + + - + - + - - + - - + - - + - |
— Firefox 54 – behind the dom.moduleScripts.enabled setting in about:config.
— Edge 15 – behind the Experimental JavaScript Features setting in about:flags.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export
*/
|
| ︙ | |||
146 147 148 149 150 151 152 153 | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | + + + + + + + + + + + + + + + + + + |
function handleMessage (oRequest, xSender, sendResponse) {
console.log(`[background] received: ${oRequest.content}`);
sendResponse({response: "response from background script"});
}
browser.runtime.onMessage.addListener(handleMessage);
helpers.echo("START");
helpers.echo(conj.getConj("devenir", ":E", ":2s"));
helpers.echo(mfsp.getMasForm("emmerdeuse", true));
helpers.echo(mfsp.getMasForm("pointilleuse", false));
helpers.echo(phonet.getSimil("est"));
let oDict = new IBDAWG("French.json");
helpers.echo(oDict.getMorph("merde"));
gc_engine.load("JavaScript");
let aRes = gc_engine.parse("Je suit...");
for (let oErr of aRes) {
helpers.echo(text.getReadableError(oErr));
}
//fullTests();
|
Modified gc_lang/fr/webext/manifest.json from [b861237771] to [b03a0d0ed3].
| ︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | + |
"grammalecte/fr/conj.js",
"grammalecte/fr/mfsp.js",
"grammalecte/fr/phonet.js",
"grammalecte/fr/cregex.js",
"grammalecte/fr/gc_options.js",
"grammalecte/fr/gc_rules.js",
"grammalecte/fr/gc_engine.js",
"grammalecte/tests.js",
"gce_worker.js"
]
},
"web_accessible_resources": [
"grammalecte/_dictionaries/French.json",
"grammalecte/fr/conj_data.json",
"grammalecte/fr/mfsp_data.json",
|
| ︙ |