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

Quelle  browser_utility_multipleAudio.js   Sprache: JAVA

 
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

/* import-globals-from head-multiple.js */

Services.scriptloader.loadSubScript(
  "chrome://mochitests/content/browser/ipc/glue/test/browser/head-multiple.js",
  this
);

add_setup(async function checkAudioDecodingNonUtility() {
  const isAudioDecodingNonUtilityAllowed = await SpecialPowers.getBoolPref(
    "media.allow-audio-non-utility"
  );
  ok(
    !isAudioDecodingNonUtilityAllowed,
    "Audio decoding should not be allowed on non utility processes by default"
  );
});

add_task(async function testAudioDecodingInUtility() {
  await runTest({ expectUtility: true });
});

add_task(async function testFailureAudioDecodingInRDD() {
  await runTest({ expectUtility: false, expectError: true });
});

add_task(async function testFailureAudioDecodingInContent() {
  const platform = Services.appinfo.OS;
  if (platform === "WINNT") {
    ok(
      true,
      "Manually skipping on Windows because of gfx killing us, cf browser.ini"
    );
    return;
  }

  await SpecialPowers.pushPrefEnv({
    set: [["media.rdd-process.enabled"false]],
  });
  await runTest({ expectUtility: false, expectRDD: false, expectError: true });
});

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

¤ Dauer der Verarbeitung: 0.11 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.