Bug 615282 - Make test_keys.html pass on OSX. r=Marcoz a=testonly
authorDavid Bolter <dbolter@mozilla.com>
Thu, 02 Dec 2010 11:07:28 -0500
changeset 58489 905ffb24d56a3a6cd04f9bb475d415b21d7dff2b
parent 58488 4661521b737c8d2208d8677b2927c48bd387ca2b
child 58495 ea8c9b1d381be538438a94db5d006ff494f0f3dd
push id17318
push userdbolter@mozilla.com
push dateThu, 02 Dec 2010 16:07:47 +0000
treeherdermozilla-central@905ffb24d56a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMarcoz, testonly
bugs615282
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 615282 - Make test_keys.html pass on OSX. r=Marcoz a=testonly
accessible/tests/mochitest/test_keys.html
--- a/accessible/tests/mochitest/test_keys.html
+++ b/accessible/tests/mochitest/test_keys.html
@@ -1,11 +1,12 @@
 <html>
 
 <head>
+  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
   <title>Keyboard shortcuts tests</title>
   <link rel="stylesheet" type="text/css"
         href="chrome://mochikit/content/tests/SimpleTest/test.css" />
 
   <script type="application/javascript"
           src="chrome://mochikit/content/MochiKit/packed.js"></script>
   <script type="application/javascript"
           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
@@ -22,17 +23,17 @@
 
       is(acc.keyboardShortcut, aKey,
          "Wrong keyboard shortcut on " + prettyName(aAccOrElmOrID));
     }
 
     function doTest()
     {
       testKeyboardShortcut("input1", "");
-      testKeyboardShortcut("input2", "Alt+Shift+b");
+      testKeyboardShortcut("input2", MAC ? "⌃b" : "Alt+Shift+b");
 
       SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTest);
   </script>