mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Fix unit test: Number of errors in this test
This commit is contained in:
parent
e290b2cd7a
commit
aef0be6a1d
@ -24,19 +24,19 @@ $(document).ready( function () {
|
|||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Sorting (first click) on second column",
|
"Sorting (first click) on second column",
|
||||||
function () { $('#example thead th:eq(1)').click(); },
|
function () { $('#example thead th:eq(1)').click(); },
|
||||||
function () { return $('#example tbody td:eq(1)').html() == "true"; }
|
function () { return $('#example tbody td:eq(1)').html() == ""; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Sorting (second click) on second column",
|
"Sorting (second click) on second column",
|
||||||
function () { $('#example thead th:eq(1)').click(); },
|
function () { $('#example thead th:eq(1)').click(); },
|
||||||
function () { return $('#example tbody td:eq(1)').html() == "Seamonkey 1.1"; }
|
function () { return $('#example tbody td:eq(1)').html() == "true"; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Sorting (third click) on second column",
|
"Sorting (third click) on second column",
|
||||||
function () { $('#example thead th:eq(1)').click(); },
|
function () { $('#example thead th:eq(1)').click(); },
|
||||||
function () { return $('#example tbody td:eq(1)').html() == "true"; }
|
function () { return $('#example tbody td:eq(1)').html() == ""; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
@ -58,33 +58,33 @@ $(document).ready( function () {
|
|||||||
oDispacher.click( $('#example thead th:eq(1)')[0], { 'shift': true } ); },
|
oDispacher.click( $('#example thead th:eq(1)')[0], { 'shift': true } ); },
|
||||||
function () { var b =
|
function () { var b =
|
||||||
$('#example tbody tr:eq(1) td:eq(0)').html() == "Gecko" &&
|
$('#example tbody tr:eq(1) td:eq(0)').html() == "Gecko" &&
|
||||||
$('#example tbody tr:eq(1) td:eq(1)').html() == "false"; return b; }
|
$('#example tbody tr:eq(1) td:eq(1)').html() == "Camino 1.0"; return b; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Sorting multi-column - sorting second column only",
|
"Sorting multi-column - sorting second column only",
|
||||||
function () {
|
function () {
|
||||||
$('#example thead th:eq(1)').click(); },
|
$('#example thead th:eq(1)').click(); },
|
||||||
function () { return $('#example tbody td:eq(1)').html() == "false"; }
|
function () { return $('#example tbody td:eq(1)').html() == ""; }
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Basic paging */
|
/* Basic paging */
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Paging to second page",
|
"Paging to second page",
|
||||||
function () { $('#example_next').click(); },
|
function () { $('#example_next').click(); },
|
||||||
function () { return $('#example tbody td:eq(1)').html() == "Firefox 1.5"; }
|
function () { return $('#example tbody td:eq(1)').html() == "Firefox 2.0"; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Paging to first page",
|
"Paging to first page",
|
||||||
function () { $('#example_previous').click(); },
|
function () { $('#example_previous').click(); },
|
||||||
function () { return $('#example tbody td:eq(1)').html() == "false"; }
|
function () { return $('#example tbody td:eq(1)').html() == ""; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Attempting to page back beyond the first page",
|
"Attempting to page back beyond the first page",
|
||||||
function () { $('#example_previous').click(); },
|
function () { $('#example_previous').click(); },
|
||||||
function () { return $('#example tbody td:eq(1)').html() == "false"; }
|
function () { return $('#example tbody td:eq(1)').html() == ""; }
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Changing length */
|
/* Changing length */
|
||||||
@ -297,7 +297,7 @@ $(document).ready( function () {
|
|||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Filter 'Win' - sorting column 1",
|
"Filter 'Win' - sorting column 1",
|
||||||
function () { $('#example thead th:eq(1)').click(); },
|
function () { $('#example thead th:eq(1)').click(); },
|
||||||
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "true"; }
|
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == ""; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
@ -310,7 +310,7 @@ $(document).ready( function () {
|
|||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
"Filter 'Win' - sorting column 1 reverse",
|
"Filter 'Win' - sorting column 1 reverse",
|
||||||
function () { $('#example thead th:eq(1)').click(); },
|
function () { $('#example thead th:eq(1)').click(); },
|
||||||
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "Seamonkey 1.1"; }
|
function () { return $('#example tbody tr:eq(0) td:eq(1)').html() == "true"; }
|
||||||
);
|
);
|
||||||
|
|
||||||
oTest.fnTest(
|
oTest.fnTest(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user