DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=379440
-->
<head>
  <title>Test for Bug 379440</title>
  <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
  <script type="text/javascript" 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://www.example.com/), crosshair;
    }
    #t2 {
      cursor: url(file:///tmp/foo), url(file:///c|/), crosshair;
    }
    #t3 {
      cursor: url(http://www.example.com/), crosshair;
    }
    #t4 {
      cursor: url(http://www.example.com/);
    }
    #t5 {
      cursor: url(http://www.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(http://www.example.com/), crosshair",
   "Drop unloadable URIs");
is(cur("t2"), "crosshair", "Drop unloadable URIs again");
is(cur("t3"), "url(http://www.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>