mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
ede8c44ef2
This excludes dom/, otherwise the file size is too large for phabricator to handle. This is an autogenerated commit to handle scripts loading mochitest harness files, in the simple case where the script src is on the same line as the tag. This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170 using the `--part 2` argument. Differential Revision: https://phabricator.services.mozilla.com/D27456 --HG-- extra : moz-landing-system : lando
75 lines
2.0 KiB
HTML
75 lines
2.0 KiB
HTML
<!DOCTYPE HTML>
|
|
<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="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">
|
|
|
|
/** Test for Bug 379440 **/
|
|
|
|
function cur(id) {
|
|
return document.defaultView.getComputedStyle($(id)).cursor;
|
|
}
|
|
|
|
is(cur("t1"), 'url("file:///tmp/foo"), url("file:///c:/"), ' +
|
|
'url("http://example.com/"), crosshair',
|
|
"Serialize unloadable URLs using their specified value");
|
|
is(cur("t2"), 'url("file:///tmp/foo"), url("file:///c:/"), crosshair',
|
|
"Serialize unloadable URLs using their specified value");
|
|
is(cur("t3"), 'url("http://example.com/"), crosshair', "URI + fallback");
|
|
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>
|
|
|