products/Sources/formale Sprachen/C/Android/build/build/soong/shared/   (Firefox Browser Version 153.0.1©)  Datei vom 26.5.2026 mit Größe 1 kB image not shown  

SSL browser_jsonview_nojs.js

  Sprache: JAVA
 

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


"use strict";

add_task(async function () {
  info("Test JSON without JavaScript started.");

  const oldPref = Services.prefs.getBoolPref("javascript.enabled");
  Services.prefs.setBoolPref("javascript.enabled"false);

  const TEST_JSON_URL = "data:application/json,[1,2,3]";

  // "uninitialized" will be the last app readyState because JS is disabled.
  await addJsonViewTab(TEST_JSON_URL, { appReadyState: "uninitialized" });

  info("Checking visible text contents.");

  const text = await SpecialPowers.spawn(gBrowser.selectedBrowser, [], () => {
    const element = content.document.querySelector("html");
    return element ? element.innerText : null;
  });
  is(text, "[1,2,3]""The raw source should be visible.");

  Services.prefs.setBoolPref("javascript.enabled", oldPref);
});

Messung V0.5 in Prozent
C=85 H=96 G=90

¤ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






über den Urheber dieser Seite

Die Firma ist wie angegeben erreichbar.

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.