From 37f083a8c565124f6efdfa141eb76d27e58157b8 Mon Sep 17 00:00:00 2001 From: Thonier Florian Date: Tue, 11 Jan 2022 14:33:26 +0100 Subject: [PATCH 01/11] clone.js; show productivity in gethtmlinfo --- browser/js/clone.js | 3 +++ browser/test/QUnit/testFiles/clone_test.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/browser/js/clone.js b/browser/js/clone.js index 64ef3a1cf..64332a38f 100644 --- a/browser/js/clone.js +++ b/browser/js/clone.js @@ -1707,6 +1707,9 @@ Clone.prototype = { html += row_1("locus", this.m.systemBox(this.germline).outerHTML + this.germline + "", undefined, time_length) } + if (this.seg != undefined && this.seg.junction != undefined){ + html += row_1("Productivity", this.getProductivityNameDetailed() + "", undefined, time_length) + } if (this.hasSizeConstant() || (this.hasSizeDistrib() && this.getGene("5") != "undefined V")){ html += row_1("V gene (or 5')", this.getGene("5") + "", undefined, time_length) diff --git a/browser/test/QUnit/testFiles/clone_test.js b/browser/test/QUnit/testFiles/clone_test.js index 8fe2e8717..50692d29d 100644 --- a/browser/test/QUnit/testFiles/clone_test.js +++ b/browser/test/QUnit/testFiles/clone_test.js @@ -284,8 +284,8 @@ QUnit.test("name, informations, getHtmlInfo", function(assert) { "getHtmlInfo: segmentation information + modification button + manuallyChanged icon"); // locusGTRG // not tested (order of title/class) - - + assert.includes(html, "Productivity", + "getHtmlInfo: productivity information (if exist)"); // locus/genes content tests // TODO correct this locus test/function for chromium/firefox (inversion des balises) /*assert.includes(html, "locusGTRG