accessible/tests/mochitest/tree/test_map.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>HTML map accessible tree tests</title>
michael@0 5 <link rel="stylesheet" type="text/css"
michael@0 6 href="chrome://mochikit/content/tests/SimpleTest/test.css" />
michael@0 7
michael@0 8 <script type="application/javascript"
michael@0 9 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
michael@0 10
michael@0 11 <script type="application/javascript"
michael@0 12 src="../common.js"></script>
michael@0 13 <script type="application/javascript"
michael@0 14 src="../role.js"></script>
michael@0 15
michael@0 16 <script type="application/javascript">
michael@0 17 function doTest()
michael@0 18 {
michael@0 19 // map used as imagemap, not accessible
michael@0 20 var accTree =
michael@0 21 { SECTION: [ ] };
michael@0 22
michael@0 23 testAccessibleTree("imagemapcontainer", accTree);
michael@0 24
michael@0 25 // map group. Imagemaps are inlines by default, so TEXT_CONTAINER.
michael@0 26 accTree =
michael@0 27 { TEXT_CONTAINER: [
michael@0 28 { PARAGRAPH: [
michael@0 29 { TEXT_LEAF: [ ] },
michael@0 30 { LINK: [
michael@0 31 { TEXT_LEAF: [ ] }
michael@0 32 ] },
michael@0 33 { TEXT_LEAF: [ ] },
michael@0 34 { LINK: [
michael@0 35 { TEXT_LEAF: [ ] }
michael@0 36 ] },
michael@0 37 { TEXT_LEAF: [ ] }
michael@0 38 ] }
michael@0 39 ] };
michael@0 40
michael@0 41 testAccessibleTree("mapgroup", accTree);
michael@0 42
michael@0 43 SimpleTest.finish();
michael@0 44 }
michael@0 45
michael@0 46 SimpleTest.waitForExplicitFinish();
michael@0 47 addA11yLoadEvent(doTest);
michael@0 48 </script>
michael@0 49 </head>
michael@0 50 <body>
michael@0 51
michael@0 52 <a target="_blank"
michael@0 53 title="Map used for grouping is not accessible under certain circumstances"
michael@0 54 href="https://bugzilla.mozilla.org/show_bug.cgi?id=627718">
michael@0 55 Mozilla Bug 627718
michael@0 56 </a>
michael@0 57 <p id="display"></p>
michael@0 58 <div id="content" style="display: none"></div>
michael@0 59 <pre id="test">
michael@0 60 </pre>
michael@0 61
michael@0 62 <div id="imagemapcontainer">
michael@0 63 <map name="atoz_map">
michael@0 64 <area href="http://www.bbc.co.uk/radio4/atoz/index.shtml#b"
michael@0 65 coords="17,0,30,14" alt="b" shape="rect">
michael@0 66 <area href="http://www.bbc.co.uk/radio4/atoz/index.shtml#a"
michael@0 67 coords="0,0,13,14" alt="a" shape="rect">
michael@0 68 </map>
michael@0 69 </div>
michael@0 70
michael@0 71 <img id="imgmap" width="447" height="15"
michael@0 72 usemap="#atoz_map"
michael@0 73 src="../letters.gif">
michael@0 74
michael@0 75 <map id="mapgroup" title="Navigation Bar" name="mapgroup">
michael@0 76 <p>
michael@0 77 [<a href="#how">Bypass navigation bar</a>]
michael@0 78 [<a href="home.html">Home</a>]
michael@0 79 </p>
michael@0 80 </map>
michael@0 81
michael@0 82 </body>
michael@0 83 </html>

mercurial