"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/spec/tablesort.js" between
tablesort-5.2.1.tar.gz and tablesort-5.3.0.tar.gz

About: tablesort is a small and simple sorting component for HTML tables (written in JavaScript).

tablesort.js  (tablesort-5.2.1):tablesort.js  (tablesort-5.3.0)
skipping to change at line 196 skipping to change at line 196
var event = document.createEvent('HTMLEvents'); var event = document.createEvent('HTMLEvents');
event.initEvent('click', true, false); event.initEvent('click', true, false);
el.dispatchEvent(event); el.dispatchEvent(event);
t.equal(tableSortColumnKeys.rows[1].cells[1].innerHTML, '1', 'was 1'); t.equal(tableSortColumnKeys.rows[1].cells[1].innerHTML, '1', 'was 1');
t.equal(tableSortColumnKeys.rows[2].cells[1].innerHTML, '2', 'was 2'); t.equal(tableSortColumnKeys.rows[2].cells[1].innerHTML, '2', 'was 2');
t.equal(tableSortColumnKeys.rows[3].cells[1].innerHTML, '3', 'was 3'); t.equal(tableSortColumnKeys.rows[3].cells[1].innerHTML, '3', 'was 3');
t.end(); t.end();
}) })
tape('uses custom sort attribute', function(t) {
var tbl = tableSortCustomAttr;
var h = tbl.querySelector('th');
var clickEvent = document.createEvent('HTMLEvents');
clickEvent.initEvent('click', true, false);
h.dispatchEvent(clickEvent);
t.equal(tbl.rows[1].cells[0].innerHTML, 'Black Widow (Natasha Romanoff)');
t.equal(tbl.rows[2].cells[0].innerHTML, 'Spider-Man (Peter Parker)');
t.equal(tbl.rows[3].cells[0].innerHTML, 'Captain America (Steve Rogers)');
t.equal(tbl.rows[4].cells[0].innerHTML, 'Iron Man (Tony Stark)');
t.end();
})
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)