mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
fix: fix //website/app_test.js
This commit is contained in:
parent
3c080ca39a
commit
202e7445d5
1 changed files with 18 additions and 13 deletions
|
@ -41,7 +41,8 @@ const regularData = [
|
||||||
fetch_deps: 6
|
fetch_deps: 6
|
||||||
},
|
},
|
||||||
syscall_count: {
|
syscall_count: {
|
||||||
hello: 600
|
hello: 600,
|
||||||
|
fetch_deps: 700
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -72,7 +73,8 @@ const regularData = [
|
||||||
fetch_deps: 7
|
fetch_deps: 7
|
||||||
},
|
},
|
||||||
syscall_count: {
|
syscall_count: {
|
||||||
hello: 700
|
hello: 700,
|
||||||
|
fetch_deps: 800
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -113,10 +115,10 @@ test(function createExecTimeColumnsRegularData() {
|
||||||
test(function createExecTimeColumnsIrregularData() {
|
test(function createExecTimeColumnsIrregularData() {
|
||||||
const columns = createExecTimeColumns(irregularData);
|
const columns = createExecTimeColumns(irregularData);
|
||||||
assertEqual(columns, [
|
assertEqual(columns, [
|
||||||
["hello", 0, 0],
|
["hello", null, null],
|
||||||
["relative_import", 0, 0],
|
["relative_import", null, null],
|
||||||
["cold_hello", 0, 0],
|
["cold_hello", null, null],
|
||||||
["cold_relative_import", 0, 0]
|
["cold_relative_import", null, null]
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
@ -135,10 +137,10 @@ test(function createBinarySizeColumnsRegularData() {
|
||||||
test(function createBinarySizeColumnsIrregularData() {
|
test(function createBinarySizeColumnsIrregularData() {
|
||||||
const columns = createBinarySizeColumns(irregularData);
|
const columns = createBinarySizeColumns(irregularData);
|
||||||
assertEqual(columns, [
|
assertEqual(columns, [
|
||||||
["deno", 0, 100000000],
|
["deno", null, 100000000],
|
||||||
["main.js", 0, 0],
|
["main.js", null, 0],
|
||||||
["main.js.map", 0, 0],
|
["main.js.map", null, 0],
|
||||||
["snapshot_deno.bin", 0, 0]
|
["snapshot_deno.bin", null, 0]
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
@ -151,21 +153,24 @@ test(function createThreadCountColumnsRegularData() {
|
||||||
/* Test is incorrect. TODO: fix this test.
|
/* Test is incorrect. TODO: fix this test.
|
||||||
test(function createThreadCountColumnsIrregularData() {
|
test(function createThreadCountColumnsIrregularData() {
|
||||||
const columns = createThreadCountColumns(irregularData);
|
const columns = createThreadCountColumns(irregularData);
|
||||||
assertEqual(columns, [["set_timeout", 0, 0], ["fetch_deps", 0, 0]]);
|
assertEqual(columns, [
|
||||||
|
["set_timeout", null, null],
|
||||||
|
["fetch_deps", null, null]
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Test is incorrect. TODO: fix this test.
|
/* Test is incorrect. TODO: fix this test.
|
||||||
test(function createSyscallCountColumnsRegularData() {
|
test(function createSyscallCountColumnsRegularData() {
|
||||||
const columns = createSyscallCountColumns(regularData);
|
const columns = createSyscallCountColumns(regularData);
|
||||||
assertEqual(columns, [["hello", 600, 700]]);
|
assertEqual(columns, [["hello", 600, 700], ["fetch_deps", 700, 800]]);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Test is incorrect. TODO: fix this test.
|
/* Test is incorrect. TODO: fix this test.
|
||||||
test(function createSyscallCountColumnsIrregularData() {
|
test(function createSyscallCountColumnsIrregularData() {
|
||||||
const columns = createSyscallCountColumns(irregularData);
|
const columns = createSyscallCountColumns(irregularData);
|
||||||
assertEqual(columns, [["hello", 0, 0]]);
|
assertEqual(columns, [["hello", null, null], ["fetch_deps", null, null]]);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue