| Tests inspector cookies table |
| |
| |
| -------- RebuildTable -------- |
| |
| |
| --- Empty test --- |
| |
| # of node.appendChild calls: 0 |
| # of node.removeChildren calls: 2 |
| |
| --- Null test --- |
| |
| # of node.appendChild calls: 0 |
| # of node.removeChildren calls: 2 |
| |
| --- Ascending no selection test --- |
| |
| # of node.appendChild calls: 6 |
| # of node.removeChildren calls: 2 |
| node.appendChild call: cookieA 11 Session |
| node.appendChild call: cookieB 2 1970-01-01T00:00:00.001Z |
| node.appendChild call: cookieC foo 2018-12-17T14:31:30.000Z |
| node.appendChild call: cookieD {other} 1970-01-01T05:32:21.213Z |
| node.appendChild call: cookieE zz 1970-01-01T01:42:01.598Z |
| node.appendChild call: cookieF null Session |
| |
| --- Descending selection test --- |
| |
| # of node.appendChild calls: 6 |
| # of node.removeChildren calls: 2 |
| node.appendChild call: cookieF null Session |
| node.appendChild call: cookieE zz 1970-01-01T01:42:01.598Z |
| node.appendChild call: cookieD {other} 1970-01-01T05:32:21.213Z |
| node.appendChild call: cookieC foo 2018-12-17T14:31:30.000Z [selected] |
| node.appendChild call: cookieB 2 1970-01-01T00:00:00.001Z |
| node.appendChild call: cookieA 11 Session |
| |
| --- Neighbor selection test --- |
| |
| # of node.appendChild calls: 6 |
| # of node.removeChildren calls: 2 |
| node.appendChild call: cookieA 11 Session [selected] |
| node.appendChild call: cookieB 2 1970-01-01T00:00:00.001Z |
| node.appendChild call: cookieC foo 2018-12-17T14:31:30.000Z |
| node.appendChild call: cookieD {other} 1970-01-01T05:32:21.213Z |
| node.appendChild call: cookieE zz 1970-01-01T01:42:01.598Z |
| node.appendChild call: cookieF null Session |
| |
| --- Previous neighbor selection test --- |
| |
| # of node.appendChild calls: 6 |
| # of node.removeChildren calls: 2 |
| node.appendChild call: cookieA 11 Session |
| node.appendChild call: cookieB 2 1970-01-01T00:00:00.001Z |
| node.appendChild call: cookieC foo 2018-12-17T14:31:30.000Z |
| node.appendChild call: cookieD {other} 1970-01-01T05:32:21.213Z |
| node.appendChild call: cookieE zz 1970-01-01T01:42:01.598Z [selected] |
| node.appendChild call: cookieF null Session |
| |
| --- Inactive node test --- |
| |
| # of node.appendChild calls: 7 |
| # of node.removeChildren calls: 2 |
| node.appendChild call: cookieA 11 Session |
| node.appendChild call: cookieB 2 1970-01-01T00:00:00.001Z |
| node.appendChild call: cookieC foo 2018-12-17T14:31:30.000Z |
| node.appendChild call: cookieD {other} 1970-01-01T05:32:21.213Z |
| node.appendChild call: cookieE zz 1970-01-01T01:42:01.598Z |
| node.appendChild call: cookieF null Session |
| node.appendChild call: missing cookie Session [selected] |
| |
| -------- Sort cookies -------- |
| |
| params: name desc |
| cookieF,cookieE,cookieD,cookieC,cookieB,cookieA |
| params: value asc |
| cookieA,cookieB,cookieC,cookieF,cookieE,cookieD |
| params: path desc |
| cookieA,cookieE,cookieB,cookieD,cookieC,cookieF |
| params: domain asc |
| cookieB,cookieD,cookieC,cookieA,cookieF,cookieE |
| params: null asc |
| cookieA,cookieB,cookieC,cookieD,cookieE,cookieF |
| |