comparison test_create/test_core.js @ 2239:27f3cbb3a960

Updated test creator to reflect latest specification edits.
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Fri, 15 Apr 2016 15:56:45 +0100
parents 760719986df3
children 152eada7bd03
comparison
equal deleted inserted replaced
2237:6ffef0759d29 2239:27f3cbb3a960
1246 if (this.default != undefined && value == undefined) 1246 if (this.default != undefined && value == undefined)
1247 { 1247 {
1248 value = this.default; 1248 value = this.default;
1249 } 1249 }
1250 if (this.input.type == "checkbox") { 1250 if (this.input.type == "checkbox") {
1251 this.input.checked = value; 1251 if (value == "true" || value == "True") {this.input.checked = false;}
1252 else {this.input.checked = false;}
1252 } else { 1253 } else {
1253 this.input.value = value; 1254 this.input.value = value;
1254 } 1255 }
1255 this.handleEvent = function(event) 1256 this.handleEvent = function(event)
1256 { 1257 {