Misc test suite fixes for IE8. Fixes #323.
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user