File: cell%28%29.data%28%29.js

package info (click to toggle)
datatables.js 1.10.13%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,232 kB
  • ctags: 1,329
  • sloc: xml: 10,249; php: 4,387; sh: 492; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 906 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// todo tests
// - Confirm it exists and is a function
// - Getter:
//   - Ensure that the data from the cell is returned
//   - Use a renderer for a column, make sure that it is the data and not the rendered value that is returned
// - Setter:
//   - Returns an API instance
//   - Data in the DOM is updated for the target cell
//   - Filtering works on the new value
//   - Sorting works on the new value
//   - Number of rows in the table matches that before the update (i.e. doesn't add or remove a row by mistake)
//   - Set a value for a column with a renderer - make sure the renderer is executed and the DOM updated with the rendered value
describe( "cells- cell().data()", function() {
	dt.libs( {
		js:  [ 'jquery', 'datatables' ],
		css: [ 'datatables' ]
	} );

	describe("Check the defaults", function () {
		dt.html( 'basic' );
		it("Default should be null", function () {
				});

	});

});