Show
Ignore:
Timestamp:
03/03/08 15:54:55 (10 months ago)
Author:
sorvell
Message:

!strict fixes #5405 dojox.grid.editors.Select now accepts 0 as a value property. Previously, the the values property was not properly used. This has also been repaired.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/grid/tests/test_edit.html

    r11375 r12847  
    6767        // ========================================================================== 
    6868        data = [  
    69                 [ "normal", false, "new", 'But are not followed by two hexadecimal', 29.91, 10, false ], 
    70                 [ "important", false, "new", 'Because a % sign always indicates', 9.33, -5, false ], 
    71                 [ "important", false, "read", 'Signs can be selectively', 19.34, 0, true ], 
    72                 [ "note", false, "read", 'However the reserved characters', 15.63, 0, true ], 
    73                 [ "normal", false, "replied", 'It is therefore necessary', 24.22, 5.50, true ], 
    74                 [ "important", false, "replied", 'To problems of corruption by', 9.12, -3, true ], 
    75                 [ "note", false, "replied", 'Which would simply be awkward in', 12.15, -4, false ] 
     69                [ 0, false, "new", 'But are not followed by two hexadecimal', 29.91, 10, false ], 
     70                [ 1, false, "new", 'Because a % sign always indicates', 9.33, -5, false ], 
     71                [ 1, false, "read", 'Signs can be selectively', 19.34, 0, true ], 
     72                [ 2, false, "read", 'However the reserved characters', 15.63, 0, true ], 
     73                [ 0, false, "replied", 'It is therefore necessary', 24.22, 5.50, true ], 
     74                [ 1, false, "replied", 'To problems of corruption by', 9.12, -3, true ], 
     75                [ 2, false, "replied", 'Which would simply be awkward in', 12.15, -4, false ] 
    7676        ]; 
    7777        var rows = 10000; 
     
    103103                rows: [[ 
    104104                        { name: 'Id', width: 3, get: function(inRowIndex) { return inRowIndex+1;} }, 
    105                         { name: 'Priority', styles: 'text-align: center;', editor: dojox.grid.editors.Select, options: ["normal", "note", "important"]}, 
     105                        { name: 'Priority', styles: 'text-align: center;', editor: dojox.grid.editors.Select, options: ["normal", "note", "important"], values: [0, 1, 2], formatter: function(inDatum) { return this.options[inDatum]}}, 
    106106                        { name: 'Mark', width: 3, styles: 'text-align: center;', editor: dojox.grid.editors.Bool }, 
    107107                        statusCell,