Grammalecte  Check-in [acf176c4b5]

Overview
Comment:[fx][js] test_panel: remove innerHTML
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | kill_innerHTML
Files: files | file ages | folders
SHA3-256: acf176c4b545365045c6131c1ddc66bae4e394dabab74bf9428725de5b376feb
User & Date: olr on 2017-07-14 06:47:09
Other Links: branch diff | manifest | tags
Context
2017-07-14
07:29
[core][js] text: include line_id in text error check-in: e6f6ea9999 user: olr tags: core, kill_innerHTML
06:47
[fx][js] test_panel: remove innerHTML check-in: acf176c4b5 user: olr tags: fx, kill_innerHTML
2017-07-13
17:30
[fx][js] gc_panel revamping (part 2) check-in: 96809cd8cd user: olr tags: fx, kill_innerHTML
Changes

Modified gc_lang/fr/xpi/data/test_panel.js from [7ad6cf391b] to [c07ad2c400].

     1      1   // JavaScript
     2      2   
     3      3   /*
     4      4   	Events
     5      5   */
     6      6   
     7         -self.port.on("addElem", function (sHtml) {
     8         -	let xElem = document.createElement("p");
     9         -	xElem.innerHTML = sHtml;
            7  +self.port.on("addElem", function (sText) {
            8  +	let xElem = document.createElement("pre");
            9  +	xElem.textContent = sText;
    10     10   	document.getElementById("results").appendChild(xElem);
    11     11   });
    12     12   
    13     13   self.port.on("clear", function () {
    14     14   	document.getElementById("results").textContent = "";
    15     15   });
    16     16   

Modified gc_lang/fr/xpi/gce_worker.js from [ca6bb30dca] to [be41214f38].

   122    122           gce.setOptions(helpers.objectToMap(JSON.parse(sGCOptions)));
   123    123       }
   124    124       let tests = require("resource://grammalecte/tests.js");
   125    125       let oTest = new tests.TestGrammarChecking(gce);
   126    126       let sAllRes = "";
   127    127       for (let sRes of oTest.testParse()) {
   128    128           dump(sRes+"\n");
   129         -        sAllRes += sRes+"<br/>";
          129  +        sAllRes += sRes+"\n";
   130    130       }
   131    131       gce.setOptions(dMemoOptions);
   132    132       return sAllRes;
   133    133   }
   134    134   
   135    135   
   136    136   // Lexicographer