- Author:
- David Nickerson <david.nickerson@gmail.com>
- Date:
- 2021-09-15 23:47:39+12:00
- Desc:
- Update jupyter notebook with FK-BR comparison to original BR model
- Permanent Source URI:
- https://staging.physiomeproject.org/workspace/a1/rawfile/392074bea7b772e0139f6cbcd0f9a2ae562bb0ca/dojo-presentation/js/dojo/dojox/wire/tests/programmatic/TextAdapter.js
dojo.provide("dojox.wire.tests.programmatic.TextAdapter");
dojo.require("dojox.wire.TextAdapter");
tests.register("dojox.wire.tests.programmatic.TextAdapter", [
function test_TextAdapter_segments(t){
var source = {a: "a", b: "b", c: "c"};
var segments = [{property: "a"}, {property: "b"}, {property: "c"}];
var value = new dojox.wire.TextAdapter({object: source, segments: segments}).getValue();
t.assertEqual("abc", value);
},
function test_TextAdapter_delimiter(t){
var source = {a: "a", b: "b", c: "c"};
var segments = [{property: "a"}, {property: "b"}, {property: "c"}];
var value = new dojox.wire.TextAdapter({object: source, segments: segments, delimiter: "/"}).getValue();
t.assertEqual("a/b/c", value);
}
]);