Commit 9526181d authored by Mathieu Giraud's avatar Mathieu Giraud

js/model.js, tests: fix a broken test

parent b08e0b0f
...@@ -1994,6 +1994,7 @@ changeAlleleNotation: function(alleleNotation) { ...@@ -1994,6 +1994,7 @@ changeAlleleNotation: function(alleleNotation) {
span2.appendChild(this.norm_input) span2.appendChild(this.norm_input)
this.norm_button = document.createElement('button'); this.norm_button = document.createElement('button');
this.norm_input.id = "norm_button";
this.norm_button.appendChild(document.createTextNode("ok")) this.norm_button.appendChild(document.createTextNode("ok"))
this.norm_button.onclick = function () { this.norm_button.onclick = function () {
var cloneID = self.cloneID; var cloneID = self.cloneID;
...@@ -2007,8 +2008,7 @@ changeAlleleNotation: function(alleleNotation) { ...@@ -2007,8 +2008,7 @@ changeAlleleNotation: function(alleleNotation) {
self.compute_normalization(cloneID, size) self.compute_normalization(cloneID, size)
self.update() self.update()
$(self.tagSelector).hide('fast') $(self.tagSelector).hide('fast')
document.getElementById("expected_normalization_input").checked = true; $("expected_normalization_input").prop("checked", true)
}else{ }else{
console.log({"type": "popup", "msg": "expected input between 0.0001 and 1"}); console.log({"type": "popup", "msg": "expected input between 0.0001 and 1"});
} }
......
...@@ -161,8 +161,6 @@ QUnit.test("tag/norm", function(assert) { ...@@ -161,8 +161,6 @@ QUnit.test("tag/norm", function(assert) {
assert.equal(m.clone(1).getSize(), 0.1, "size before norm : Ok") assert.equal(m.clone(1).getSize(), 0.1, "size before norm : Ok")
assert.equal(m.clone(2).getSize(), 0.125, "size before norm : Ok") assert.equal(m.clone(2).getSize(), 0.125, "size before norm : Ok")
return; // TMP //
m.norm_input.value = 0.25; m.norm_input.value = 0.25;
m.norm_button.click(); m.norm_button.click();
......
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