Commit 7984ac56 authored by Boris Kocherov's avatar Boris Kocherov

tests: fist value choosing fixed

parent ac03cab9
......@@ -156,11 +156,7 @@
return g.getContent();
})
.push(function (ret) {
if (ret !== gadget.props.schemas[0]) {
gadget.props.schema = ret;
} else {
gadget.props.schema = null;
}
gadget.props.schema = ret;
return render_document_selection_form(gadget, ret);
});
}
......@@ -171,9 +167,9 @@
})
.push(function (ret) {
gadget.props.valid = null;
if (ret !== gadget.props.documents[0]) {
var test = gadget.props.schema + ': ' + ret;
test = gadget.props.test_data[test];
var test = gadget.props.schema + ': ' + ret;
test = gadget.props.test_data[test];
if (test) {
console.log(test.schema);
console.log(test.data);
return gadget.changeState({
......
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