5 test_remove_duplicates_filter_1: function () {
7 assert_objects_equal(ar.filter(remove_duplicates_filter()), [1, 2, 3]);
9 test_get_home_directory_1: function () {
10 assert(get_home_directory() instanceof Ci.nsIFile);
12 test_make_uri_1: function () {
13 assert(make_uri("http://example.com/") instanceof Ci.nsIURI);
15 test_make_uri_2: function () {
16 assert(make_uri(make_file("/a/b/c")) instanceof Ci.nsIURI);
18 test_make_uri_3: function () {
19 assert_equals(make_uri(make_file("/a/b/c")).spec.substr(0,5), "file:");
21 test_splice_range_1: function () {
22 assert_objects_equal(splice_range([[1,3],[4,6],[7,10]], 2, 8),
28 test_string_format_1: function () {
29 assert_equals(string_format("", {}),
32 test_string_format_2: function () {
33 assert_equals(string_format("%a", {a: 'hello'}),
36 test_string_format_3: function () {
37 assert_equals(string_format("%a%a", {a: 'hello'}),