Commit 8d0ec67f authored by Marc Duez's avatar Marc Duez

data_test.js : Qunit some change to the test file for list.js test suite

parent 0dd34310
......@@ -62,13 +62,13 @@ test("Axis : ", function() {
axis.useGermline(axis.m.germlineJ, "J", true)
deepEqual(axis.labels, [
{"geneColor": "rgb(36,183,171)","pos": 0.25,"text": "TRGJ2","type": "line"},
{"geneColor": "rgb(183,110,36)","pos": 0.125,"text": "*03","type": "subline"},
{"geneColor": "rgb(36,183,171)","pos": 0.375,"text": "*04","type": "subline"},
{"geneColor": "rgb(183,110,36)","pos": 0.125,"text": "*02","type": "subline"},
{"geneColor": "rgb(36,183,171)","pos": 0.375,"text": "*03","type": "subline"},
{"geneColor": "","pos": 0.75,"text": "?","type": "line"}
], "check germline J allele labels");
equal(axis.pos(0).toPrecision(3), 0.125, "clone 0 (j2*03) position -> 0.125")
equal(axis.pos(1).toPrecision(3), 0.375, "clone 1 (j2*04) position -> 0.375")
equal(axis.pos(0).toPrecision(3), 0.375, "clone 0 (j2*03) position -> 0.375")
equal(axis.pos(1).toPrecision(3), 0.125, "clone 1 (j2*04) position -> 0.125")
......
......@@ -60,7 +60,7 @@ json_data = {
"germline" : "TRG",
"seg" : {
"5" : "TRGV5*01",
"3" : "TRGJ2*04",
"3" : "TRGJ2*02",
"3start" : 15,
"5end" : 5
}
......@@ -69,7 +69,7 @@ json_data = {
"sequence" : "cccccccccccccccccccc",
"name" : "test3",
"id" : "id3",
"reads" : [25,25,50,50] ,
"reads" : [25,25,50,5] ,
"top" : 3,
"germline" : "IGH",
"seg" : {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment