Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/media/autoplay/test/mochitest/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_autoplay.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/media/autoplay/test/mochitest/test_autoplay.html


<!DOCTYPE HTML>
<html>
<head>
  <title>Media test: autoplay attribute</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  <script type="text/javascript" src="manifest.js"></script>
</head>
<body>
<video id='v1'">
<video id='v2' autoplay></video><audio id='a2' autoplay></audio>
<pre id="test">
<script class="testbody" type="text/javascript">
/* import-globals-from ../../../test/manifest.js */
var v1 = document.getElementById('v1');
var a1 = document.getElementById('a1');
var v2 = document.getElementById('v2');
var a2 = document.getElementById('a2');
ok(!v1.autoplay, "v1.autoplay should be false by default");
ok(!a1.autoplay, "v1.autoplay should be false by default");
ok(v2.autoplay, "v2.autoplay should be true");
ok(a2.autoplay, "v2.autoplay should be true");

v1.autoplay = true;
a1.autoplay = true;
ok(v1.autoplay, "video.autoplay not true");
ok(a1.autoplay, "audio.autoplay not true");
is(v1.getAttribute("autoplay"), """video autoplay attribute not set");
is(a1.getAttribute("autoplay"), """video autoplay attribute not set");

mediaTestCleanup();

</script>
</pre>
</body>
</html>

Messung V0.5
C=96 H=96 G=95

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.