Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/style/test/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<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 {
}
#t2 {
}
#t3 {
}
#t4 {
}
#t5 {
}
#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="display">
<div id="t1"> </div>
<div id="t2"></div>
<div id="t3"></div>
<div id="t4"></div>
<div id="t5"></div>
<div id="t6"></div>
<div id="t7"></div>
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
function cur(id) {
return document.defaultView.getComputedStyle($(id)).cursor;
}
"Serialize unloadable URLs using their specified value");
"Serialize unloadable URLs using their specified value");
is(cur("t4"), "auto", "Must have a fallback");
is(cur("t5"), "auto", "Fallback must be recognized");
is(cur("t6"), "crosshair", "Just a fallback");
is(cur("t7"), "auto", "Invalid fallback means ignore");
</script>
</pre>
</body>
</html>