mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
15 lines
402 B
JavaScript
15 lines
402 B
JavaScript
Cu.import("resource://services-sync/util.js");
|
|
|
|
let undef;
|
|
|
|
function run_test() {
|
|
do_check_true(Utils.isArray([]));
|
|
do_check_true(Utils.isArray([1, 2]));
|
|
do_check_false(Utils.isArray({}));
|
|
do_check_false(Utils.isArray(1.0));
|
|
do_check_false(Utils.isArray("string"));
|
|
do_check_false(Utils.isArray(null));
|
|
do_check_false(Utils.isArray(undef));
|
|
do_check_false(Utils.isArray(new Date()));
|
|
}
|