4 https://bugzilla.mozilla.org/show_bug.cgi?id=379440
7 <title>Test for Bug
379440</title>
8 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
9 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
11 <style type=
"text/css">
12 #display > * { cursor: auto
}
14 cursor: url
(file:///tmp
/foo
), url
(file:///c|
/),
15 url
(http://www
.example
.com
/), crosshair
;
18 cursor: url
(file:///tmp
/foo
), url
(file:///c|
/), crosshair
;
21 cursor: url
(http://www
.example
.com
/), crosshair
;
24 cursor: url
(http://www
.example
.com
/);
27 cursor: url
(http://www
.example
.com
/), no-such-cursor-exists
;
33 cursor: no-such-cursor-exists
;
38 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=379440">Mozilla Bug
379440</a>
48 <div id=
"content" style=
"display: none">
52 <script class=
"testbody" type=
"text/javascript">
54 /** Test for Bug
379440 **/
57 return document.defaultView.getComputedStyle($(id),
"").cursor;
60 is(cur(
"t1"),
"url(http://www.example.com/), crosshair",
61 "Drop unloadable URIs");
62 is(cur(
"t2"),
"crosshair",
"Drop unloadable URIs again");
63 is(cur(
"t3"),
"url(http://www.example.com/), crosshair",
"URI + fallback");
64 is(cur(
"t4"),
"auto",
"Must have a fallback");
65 is(cur(
"t5"),
"auto",
"Fallback must be recognized");
66 is(cur(
"t6"),
"crosshair",
"Just a fallback");
67 is(cur(
"t7"),
"auto",
"Invalid fallback means ignore");