Lines Matching refs:description
1 function assert_function_name(fn, name, description) {
3 assert_equals(typeof propdesc, "object", `${description} should have name property`);
4 assert_false(propdesc.writable, "writable", `${description} name should not be writable`);
5 assert_false(propdesc.enumerable, "enumerable", `${description} name should not be enumerable`);
6 assert_true(propdesc.configurable, "configurable", `${description} name should be configurable`);
7 assert_equals(propdesc.value, name, `${description} name should be ${name}`);
10 function assert_function_length(fn, length, description) {
12 assert_equals(typeof propdesc, "object", `${description} should have length property`);
13 assert_false(propdesc.writable, "writable", `${description} length should not be writable`);
14 assert_false(propdesc.enumerable, "enumerable", `${description} length should not be enumerable`);
15 assert_true(propdesc.configurable, "configurable", `${description} length should be configurable`);
16 assert_equals(propdesc.value, length, `${description} length should be ${length}`);
19 function assert_exported_function(fn, { name, length }, description) {
22 `${description}: prototype`);
25 `${description}: prototype`);
28 assert_function_name(fn, name, description);
29 assert_function_length(fn, length, description);