<!DOCTYPEHTML>
<html> <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=379440
-->
<head>
<title>Test for Bug 379440</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<style type="text/css">
#display > * { cursor: auto }
#t1 {
cursor: url(file:///tmp/foo), url(file:///c|/),
url(http://example.com/), crosshair;
}
#t2 {
cursor: url(file:///tmp/foo), url(file:///c|/), crosshair;
}
#t3 {
cursor: url(http://example.com/), crosshair;
}
#t4 {
cursor: url(http://example.com/);
}
#t5 {
cursor: url(http://example.com/), no-such-cursor-exists;
}
#t6 {
cursor: crosshair;
}
#t7 {
cursor: no-such-cursor-exists;
}
</style>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=379440">Mozilla Bug 379440</a>
<p id="java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 6 div id"<div>
<java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
<div id="t3"></java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 5
}
<div id="t55><div
<div id"t6">/div>
<div }
</java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 9
<id=""style"isplay:none">
<pid=display">
<re id"est"java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
< ="estbody "/">
/* Test Bug 379440*
function cur( <div id="t5">>
returndocumentdefaultView($(id)cursorjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
}
is(cur("t1"), 'url("file:///tmp/foo"), url("file:///c:/"), ' + 'url("http://example.com/"), crosshair', "Serialize unloadable URLs using their specifieddiv id="java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
is(("t2) 'rl(file:/tmp/foo" "ile://:") crosshair' "Serialize unloadable URLs java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
t3),'url(http:example.om/) crosshair, U+ fallback";
is(cur("t4" ..getComputedStyle$id).ursor
is(("5),auto" Fallbackmust recognized)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
is(urt6) c,"ust fallback");
is(cur("t7"), "auto", "Invalid fallback means ignore");
</script>
</pre>
</body"Serialize unloadable URLs using their specified value");
</is(cur("t2"), 'url("file:///tmp/foo"), url("file:///c: Serialize unloadableURLs using their specified value");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.