Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=379440 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 379440</title> |
michael@0 | 8 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 10 | <style type="text/css"> |
michael@0 | 11 | #display > * { cursor: auto } |
michael@0 | 12 | #t1 { |
michael@0 | 13 | cursor: url(file:///tmp/foo), url(file:///c|/), |
michael@0 | 14 | url(http://example.com/), crosshair; |
michael@0 | 15 | } |
michael@0 | 16 | #t2 { |
michael@0 | 17 | cursor: url(file:///tmp/foo), url(file:///c|/), crosshair; |
michael@0 | 18 | } |
michael@0 | 19 | #t3 { |
michael@0 | 20 | cursor: url(http://example.com/), crosshair; |
michael@0 | 21 | } |
michael@0 | 22 | #t4 { |
michael@0 | 23 | cursor: url(http://example.com/); |
michael@0 | 24 | } |
michael@0 | 25 | #t5 { |
michael@0 | 26 | cursor: url(http://example.com/), no-such-cursor-exists; |
michael@0 | 27 | } |
michael@0 | 28 | #t6 { |
michael@0 | 29 | cursor: crosshair; |
michael@0 | 30 | } |
michael@0 | 31 | #t7 { |
michael@0 | 32 | cursor: no-such-cursor-exists; |
michael@0 | 33 | } |
michael@0 | 34 | </style> |
michael@0 | 35 | </head> |
michael@0 | 36 | <body> |
michael@0 | 37 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=379440">Mozilla Bug 379440</a> |
michael@0 | 38 | <p id="display"> |
michael@0 | 39 | <div id="t1"> </div> |
michael@0 | 40 | <div id="t2"></div> |
michael@0 | 41 | <div id="t3"></div> |
michael@0 | 42 | <div id="t4"></div> |
michael@0 | 43 | <div id="t5"></div> |
michael@0 | 44 | <div id="t6"></div> |
michael@0 | 45 | <div id="t7"></div> |
michael@0 | 46 | </p> |
michael@0 | 47 | <div id="content" style="display: none"> |
michael@0 | 48 | |
michael@0 | 49 | </div> |
michael@0 | 50 | <pre id="test"> |
michael@0 | 51 | <script class="testbody" type="text/javascript"> |
michael@0 | 52 | |
michael@0 | 53 | /** Test for Bug 379440 **/ |
michael@0 | 54 | |
michael@0 | 55 | function cur(id) { |
michael@0 | 56 | return document.defaultView.getComputedStyle($(id), "").cursor; |
michael@0 | 57 | } |
michael@0 | 58 | |
michael@0 | 59 | is(cur("t1"), "url(\"http://example.com/\"), crosshair", |
michael@0 | 60 | "Drop unloadable URIs"); |
michael@0 | 61 | is(cur("t2"), "crosshair", "Drop unloadable URIs again"); |
michael@0 | 62 | is(cur("t3"), "url(\"http://example.com/\"), crosshair", "URI + fallback"); |
michael@0 | 63 | is(cur("t4"), "auto", "Must have a fallback"); |
michael@0 | 64 | is(cur("t5"), "auto", "Fallback must be recognized"); |
michael@0 | 65 | is(cur("t6"), "crosshair", "Just a fallback"); |
michael@0 | 66 | is(cur("t7"), "auto", "Invalid fallback means ignore"); |
michael@0 | 67 | |
michael@0 | 68 | </script> |
michael@0 | 69 | </pre> |
michael@0 | 70 | </body> |
michael@0 | 71 | </html> |
michael@0 | 72 |