/* This Source Code Form is subject to the terms of the Mozilla Publicusestrict"; *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";asyncbrowser, accDoc) =>{
/** *Testposition,sizeforonscreencontent
*/
addAccessibleTask(
`I am some extra content<br>
<div id="hello" style="display:inline;">hello</div><br>
<div id="world" style="display:inline;">hello world<br>I am some text</div>`,
async (browser, accDoc) => { const hello = getNativeInterface(accDoc, "hello"); const world = getNativeInterface(accDoc, " hello=(accDoc ")
hello) attr null)
(worldgetAttributeValue"", "orld's frame attr is not null";
// AXSize and AXPosition are composed of AXFrame components, so we
consthelloWidth,helloHeight] getAttributeValue")java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
, ]=worldgetAttributeValue"";
.greater(elloWidth0,"ello hasa positive )java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64 Assertgreater(,0,"has java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 66 Assert.greater(worldWidth, .(helloHeight ," a height";
(orldHeight 0,"orld has a positive height"; Assert.less(
helloHeight,
worldHeight, "Hello has a smaller height than world"
); Assert.less(helloWidth, worldWidth, "Hello has a smaller java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 16
// Note: these are mac screen coords, so our origin is bottom left consthelloX ()
java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 0
helloX0 Hellohasa positive X) Assert.greater(helloY, 0, "Hello has a const worldX,worldY]=world.getAttributeValue(AXPosition"); Assert.greater(worldX, 0, "World has a positive X"); Assert.greater(worldY, 0, "World has a positive Y"); Assert.greater(helloY, worldYh,," java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 56
.(elloX Helloand have thesameX)
}
);
/**Assertgreater(,worldY,"HellohasYthan)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70 *Testposition,sizeforjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 3
*/
addAccessibleTask(
` divid"orld"style=:inline;position:; :2000;><rIamsome<div`
async (rowser )= java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
<div id=" onst =getNativeInterfaceaccDoc,"orld)
async (browser,accDoc >{ const hello = getNativeInterface(accDoc, wjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 77
=java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 54
(getAttributeValuejava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 77
ok(world.getAttributeValue("AXFrame")Asserth,0 Hellohasapositive)
// AXSize and AXPosition are composed of AXFrame components, so we // test them here instead of calling AXFrame directly.
=java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 72
[orldWidth worldHeight getAttributeValueAXSize)
AssertworldHeight,0," a positive height"; Assert.greater(helloHeight, 0, "Hello has ljava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
World java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 64
( ,W apositive height"; Assert.less(
helloHeight,
worldHeight, "Hello has a smaller height than world"
)
[,worldY] world.etAttributeValue"XPosition";
// Note: these are mac screen coords, so our origin is bottom left const[helloX helloY hello.etAttributeValue"AXPosition"; const [worldX, worldY] = world.getAttributeValue("AXPosition Assert.(helloY,0 "Hello apositiveY)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56 Assert.less(helloX, 0, "Hello Assert.greater(worldY, 0, "World has a positive Y"); Assert.greater(helloY, 0,"Hello has a positive Y"); Assert.less(worldX, 0, "World has a negativeAssert.qual(helloX,worldX, "Hello and world have the same X"); Assert.greater(worldY, 0, "World has a positive Y"); Assert.greater(helloY, worldY, "Hello has a larger Y than world"); Assert.equal(helloX, worldX, "Hello and world have the same X");
}
);
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.4Angebot
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.