Debian Codegraph @

dojox/grid/tests/support/test_data_date.js

raw symbols SCIP
1 // example sample data and code
2 (function(){
3 // some sample data
4 // global var "data"
5 data = {
6 identifier: 'id',
7 label: 'id',
8 items: []
9 };
10 var s = (new Date()).getTime();
11 data_list = [
12 { col1: "normal", col2: false, col3: "new", col4: 'But are not followed by two hexadecimal', col5: 29.91, col6: 10, col7: false, col8: new Date() },
13 { col1: "important", col2: false, col3: "new", col4: 'Because a % sign always indicates', col5: 9.33, col6: -5, col7: false, col8: new Date() },
14 { col1: "important", col2: false, col3: "read", col4: 'Signs can be selectively', col5: 19.34, col6: 0, col7: true, col8: new Date() },
15 { col1: "note", col2: false, col3: "read", col4: 'However the reserved characters', col5: 15.63, col6: 0, col7: true, col8: new Date() },
16 { col1: "normal", col2: false, col3: "replied", col4: 'It is therefore necessary', col5: 24.22, col6: 5.50, col7: true, col8: new Date() },
17 { col1: "important", col2: false, col3: "replied", col4: 'To problems of corruption by', col5: 9.12, col6: -3, col7: true, col8: new Date() },
18 { col1: "note", col2: false, col3: "replied", col4: 'Which would simply be awkward in', col5: 12.15, col6: -4, col7: false, col8: new Date() }
19 ];
20 var rows = 100;
21 for(var i=0, l=data_list.length; i<rows; i++){
22 data.items.push(dojo.mixin({ id: i }, data_list[i%l]));
23 }
24
25 // global var "test_data"
26 test_store = new dojo.data.ItemFileWriteStore({data: data});
27 })();