source: Dev/trunk/src/client/dojox/wire/tests/programmatic/TableAdapter.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 626 bytes
Line 
1dojo.provide("dojox.wire.tests.programmatic.TableAdapter");
2
3dojo.require("dojox.wire.TableAdapter");
4
5tests.register("dojox.wire.tests.programmatic.TableAdapter", [
6
7        function test_TableAdapter_columns(t){
8                var source = [
9                        {a: "A1", b: "B1", c: "C1"},
10                        {a: "A2", b: "B2", c: "C2"},
11                        {a: "A3", b: "B3", c: "C3"}
12                ];
13                var columns = {x: {property: "a"}, y: {property: "b"}, z: {property: "c"}};
14                var value = new dojox.wire.TableAdapter({object: source, columns: columns}).getValue();
15                t.assertEqual(source[0].a, value[0].x);
16                t.assertEqual(source[1].b, value[1].y);
17                t.assertEqual(source[2].c, value[2].z);
18        }
19
20]);
Note: See TracBrowser for help on using the repository browser.