зеркало из https://github.com/mozilla/gecko-dev.git
backout 94e3a41d532e (increased orange)
This commit is contained in:
Родитель
22fef0fa74
Коммит
f3c69b4b0f
|
@ -98,9 +98,6 @@ this.AccessFu = {
|
|||
Services.obs.addObserver(this, 'Accessibility:Focus', false);
|
||||
this.chromeWin.addEventListener('TabOpen', this);
|
||||
this.chromeWin.addEventListener('TabSelect', this);
|
||||
|
||||
if (this.readyCallback)
|
||||
this.readyCallback();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,6 @@ DIRS = \
|
|||
hittest \
|
||||
hyperlink \
|
||||
hypertext \
|
||||
jsat \
|
||||
name \
|
||||
pivot \
|
||||
relations \
|
||||
|
|
|
@ -647,23 +647,6 @@ function shortenString(aString, aMaxLength)
|
|||
aString.substring(aString.length - trimOffset, aString.length);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// General Utils
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
* Return main chrome window (crosses chrome boundary)
|
||||
*/
|
||||
function getTopChromeWindow(aWindow)
|
||||
{
|
||||
return aWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIWebNavigation)
|
||||
.QueryInterface(Components.interfaces.nsIDocShellTreeItem)
|
||||
.rootTreeItem
|
||||
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIDOMWindow);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Private
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DEPTH = @DEPTH@
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
relativesrcdir = accessible/jsat
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MOCHITEST_A11Y_FILES =\
|
||||
test_alive.html \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
|
@ -1,70 +0,0 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>AccessFu test for enabling</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
||||
|
||||
<style type="text/css">
|
||||
.offscreen {
|
||||
position: absolute;
|
||||
left: -5000px;
|
||||
top: -5000px;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="application/javascript"
|
||||
src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||
|
||||
<script type="application/javascript"
|
||||
src="../common.js"></script>
|
||||
|
||||
<script type="application/javascript">
|
||||
|
||||
Components.utils.import("resource://gre/modules/accessibility/AccessFu.jsm");
|
||||
var gAccessFuStarted = false;
|
||||
|
||||
function startAccessFu()
|
||||
{
|
||||
SpecialPowers.setIntPref("accessibility.accessfu.activate", 1);
|
||||
|
||||
AccessFu.readyCallback = function readyCallback() {
|
||||
gAccessFuStarted = true;
|
||||
}
|
||||
|
||||
AccessFu.attach(getTopChromeWindow(window));
|
||||
}
|
||||
|
||||
function doTest()
|
||||
{
|
||||
startAccessFu();
|
||||
ok(gAccessFuStarted,"AccessFu initialization");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
addA11yLoadEvent(doTest);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<a target="_blank"
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=811307"
|
||||
title="[AccessFu] Add mochitest for enabling">
|
||||
Mozilla Bug 811307
|
||||
</a>
|
||||
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none"></div>
|
||||
<pre id="test">
|
||||
</pre>
|
||||
|
||||
<div>Alive!?</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче