Misc test suite fixes for IE8. Fixes #323.

This commit is contained in:
Dan Wilson
2013-05-14 18:45:43 +01:00
parent 28052c2717
commit b2c5c7f0e0
2 changed files with 11 additions and 9 deletions

View File

@@ -279,7 +279,7 @@ test('_normalizeRecordsAndFields', function () {
fields: [{id: 'col1'}, {id: 'col2'}], fields: [{id: 'col1'}, {id: 'col2'}],
records: [ records: [
{col1: 1, col2: 2}, {col1: 1, col2: 2},
{col1: 3, col2: 4}, {col1: 3, col2: 4}
] ]
}, },
exp: { exp: {

View File

@@ -83,7 +83,7 @@ test('editable', function () {
$('.fixtures .test-datatable').append(view.el); $('.fixtures .test-datatable').append(view.el);
view.render(); view.render();
view.grid.init(); view.show();
var new_item = {lon: "foo", id: 1, z: 23, date: "12", y: 3, country: 'FR'}; var new_item = {lon: "foo", id: 1, z: 23, date: "12", y: 3, country: 'FR'};
@@ -93,12 +93,14 @@ test('editable', function () {
// Be sure a cell change triggers a change of the model // Be sure a cell change triggers a change of the model
e = new Slick.EventData(); e = new Slick.EventData();
return view.grid.onCellChange.notify({ view.grid.onCellChange.notify({
row: 1, row: 1,
cell: 0, cell: 0,
item: new_item, item: new_item,
grid: view.grid grid: view.grid
}, e, view.grid); }, e, view.grid);
view.remove();
}); });
test('update', function() { test('update', function() {