5 test_make_uri_1: function () {
6 assert(make_uri("chrome://conkeror/content/conkeror.js"));
8 test_make_uri_2: function () {
9 assert(make_uri("http://www.example.com/"));
11 test_make_uri_3: function () {
12 assert_error(function () { make_uri("chrome://conkeror"); });
17 test_compute_up_url_1: function () {
18 assert_equals(compute_up_url(make_uri("http://example.com/")),
19 "http://example.com/");
21 test_compute_up_url_2: function () {
22 assert_equals(compute_up_url(make_uri("http://example.com/foo")),
23 "http://example.com/");
25 test_compute_up_url_3: function () {
26 assert_equals(compute_up_url(make_uri("about:config")),
29 test_compute_up_url_4: function () {
30 assert_equals(compute_up_url(make_uri("http://example.com/foo#bar")),
31 "http://example.com/foo");
33 test_compute_up_url_5: function () {
34 assert_equals(compute_up_url(make_uri("http://example.com/foo?baz=quux#bar")),
35 "http://example.com/foo?baz=quux");
37 test_compute_up_url_6: function () {
38 assert_equals(compute_up_url(make_uri("http://example.com/foo?baz=quux")),
39 "http://example.com/foo");