content/xul/document/test/test_bug335375.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <?xml version="1.0"?>
michael@0 2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
michael@0 3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
michael@0 4 <?xul-overlay href="overlay1_bug335375.xul"?>
michael@0 5 <?xul-overlay href="overlay2_bug335375.xul"?>
michael@0 6 <!--
michael@0 7 https://bugzilla.mozilla.org/show_bug.cgi?id=335375
michael@0 8 -->
michael@0 9 <window title="Mozilla Bug 335375"
michael@0 10 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 11 onload="RunTest();">
michael@0 12
michael@0 13 <script type="application/javascript"
michael@0 14 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
michael@0 15
michael@0 16 <script type="application/javascript">
michael@0 17 <![CDATA[
michael@0 18 SimpleTest.waitForExplicitFinish();
michael@0 19
michael@0 20 function RunTest()
michael@0 21 {
michael@0 22 var cmd = document.getElementById("cmd_test");
michael@0 23 var button = document.getElementById("button_test");
michael@0 24
michael@0 25 is(cmd.getAttribute("accesskey"), "C",
michael@0 26 "checking command has an accesskey");
michael@0 27 is(button.getAttribute("accesskey"), cmd.getAttribute("accesskey"),
michael@0 28 "checking command and button have the same accesskey");
michael@0 29
michael@0 30 cmd.setAttribute("accesskey", "D");
michael@0 31 is(button.getAttribute("accesskey"), "D",
michael@0 32 "checking button has inherited new accesskey from command");
michael@0 33
michael@0 34 SimpleTest.finish();
michael@0 35 }
michael@0 36 ]]>
michael@0 37 </script>
michael@0 38
michael@0 39 <body xmlns="http://www.w3.org/1999/xhtml">
michael@0 40 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=335375"
michael@0 41 target="_blank">Mozilla Bug 335375</a>
michael@0 42 <p id="display"></p>
michael@0 43 <div id="content" style="display: none"></div>
michael@0 44 <pre id="test"></pre>
michael@0 45 </body>
michael@0 46
michael@0 47 <commandset id="test_commandset"/>
michael@0 48 <toolbarbutton id="button_test"/>
michael@0 49
michael@0 50 </window>

mercurial