- Author:
- David Nickerson <david.nickerson@gmail.com>
- Date:
- 2021-09-16 22:13:11+12:00
- Desc:
- adding SED-ML for LRd, JRW, and N98 models and adding them to the jupyter notebook
- Permanent Source URI:
- https://staging.physiomeproject.org/workspace/a1/rawfile/ab0ecb950e3419f414b804ff0022c328f36fc046/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);
}
]);