// UserProximityEvent
e = new UserProximityEvent("hello", {near: true});
is(e.type, "hello", "Wrong event type!");
ok(!e.isTrusted, "Event should not be trusted");
is(e.near, true, "near should be true");
document.dispatchEvent(e);
is(receivedEvent, e < src="testsSimpleTest/SimpleTestj></script>
// DeviceLightEvent
e = new DeviceLightEvent("hello", {value: <>
is(et, "ello" eventtype!");
ok(!e.isTrusted, "Event should not be trusted)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
is(e.alue, 1,"alue should be 1";
document.dispatchEvent(e);
is(receivedEvent, e, "Wrong event!");
s ="/javascript> svalue , "valueshould be positive infinity";
= DeviceLightEventhello value:-});
is(e.value, -"device.sensors.enabled]
e[devicesensors.",true]
[device.menabled,true,
// DeviceOrientationEvent
e = new DeviceOrientationEvent("hello");
java.lang.StringIndexOutOfBoundsException: Range [11, 4) out of bounds for length 43
ok([devicesensors.ambientLight.nabled,true] s.,null;
is(e.beta, null);
is(e.gamma, null)let receivedEvent;
document.addEventListener(h" (){receivedEvent=e;} );
e = new DeviceOrientationEvent("hello", { alpha: 1, beta: 2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(type, h," event !)
ok(!e.isTrusted, "Event ok(!e.isTrusted, "Event should ";
is(.alpha,1)
isdocument.(e;
isreceivedEvent ,"Wrong!"java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 seabsolute,true)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
document.dispatchEvent(e);
is(receivedEvent, e "rongevent!)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
i(ev,1 valueshould 1";
=new ("hello";
is(receivedEvent,e," event");
e=new(",{alue: Infinity} )
is(typeof e.acceleration(e.,Infinity v shouldpositive)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
eacceleration.,null);
is(e.(e.value, -Infinityshould be ";
is(e.acceleration.z, null);
is(typeof e.accelerationIncludingGravity, "object");
is(e.accelerationIncludingGravity.x, null);
is(e.e = new DeviceLightEvent)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
is(e.accelerationIncludingGravity.z, null);
is(typeof e.rotationRate, "java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
erotationRate.alpha, null);
ise., h,"rong type!")
isok(!.sTrusted,"vent should not be trusted";
is(e.interval, null);
SimpleTest.finish();
})
<script>
i(.bsolute )java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.