Commit 15ed27e8 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mathieu Giraud

axis_test.js test_Qunit.html rename CustomAxis

parent 0e52ee7f
......@@ -11,7 +11,7 @@ QUnit.test("axis", function(assert) {
m.loadGermline()
m.initClones()
var axis = new CustomAxis(m);
var axis = new NumericalAxis(m);
/* Axis object give you label list(with position/color/...)
* and a pos(cloneID) function to place a clone on it
......@@ -81,7 +81,7 @@ QUnit.test("axis", function(assert) {
//Nlength
axis = new CustomAxis(m)
axis = new NumericalAxis(m)
axis.init(m.clones,
function(clone) {
return clone.getNlength();
......@@ -95,7 +95,7 @@ QUnit.test("axis", function(assert) {
//gc
axis = new PercentCustomAxis(m, false, false);
axis = new PercentAxis(m, false, false);
axis.init(m.clones, 'GCContent', undefined, false, 0, 1)
assert.equal(axis.pos(m.clone(0)).pos.toPrecision(3), 0.0476, "custom (percent) : clone 0 (gc = 1/21) position -> 0.0476")
......
......@@ -42,7 +42,7 @@
<script type="text/javascript" src='../../js/list.js' data-cover></script>
<script type="text/javascript" src="../../js/generic_axis.js" data-cover> </script>
<script type="text/javascript" src="../../js/germline_axis.js" data-cover> </script>
<script type="text/javascript" src="../../js/custom_axis.js" data-cover> </script>
<script type="text/javascript" src="../../js/numerical_axis.js" data-cover> </script>
<script type="text/javascript" src="../../js/graph.js" data-cover> </script>
<script type="text/javascript" src="../../js/scatterPlot.js" data-cover> </script>
<script type="text/javascript" src='../../js/builder.js' data-cover></script>
......
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