File: ajax.url%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 (23 lines) | stat: -rw-r--r-- 774 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
// todo tests
// - Check it exists and is a function
// - Can get an ajax source URL for an `ajax` sourced table
// - Can get an ajax source URL for a table that uses `ajax` as an object (i.e. `ajax.url` defines the url)
// - Returns `undefined` for a DOM sourced table
// - As a setter it will set the URL (then use as a getter to check it was set)
// - As a setter it will return a DataTables API instance
// - What happens if we set the url the same as is currently set
// - Using `ajax.reload()` will use the new URL
describe( "core- ajax.url()", function() {
	dt.libs( {
		js:  [ 'jquery', 'datatables' ],
		css: [ 'datatables' ]
	} );

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

	});

});