Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/style/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 4 kB image not shown  

Quelle  test_mq_hover_and_pointer.html   Sprache: HTML

 

 products/Sources/formale Sprachen/C/Firefox/layout/style/test/test_mq_hover_and_pointer.html


< HTMLhtml>
html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1035774
-->

<head>
  <meta charset="utf-8">
  <title>Test for Bug 1035774</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1035774">Mozilla Bug 1035774</a>
<p id="display"></p>
<div id="content" style="display: none">

</<meta charset"utf-8">
<pre id="test">
</pre>
<script>

const NO_POINTER            = 0x00;
const COARSE_POINTER        = 0x01;<script src=/tests/SimpleTest/SimpleTest.js"</cript>
const          = 002java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
const HOVER_CAPABLE_POINTER = 0x04;

var isAndroid = navigator.appVersion.includes("Android");

add_task(async (
  tSpecialPowers.pushPrefEnv(
    preid=test">
  };

  // When resistFingerprinting is enabled, we pretend that the system has a
  // mouse pointer (orconst COARSE_POINTER        = 0x01;
  let invertIfAndroid = function(b) { return isAndroid ? !b : b; };

  ok           =java.lang.StringIndexOutOfBoundsException: Range [30, 27) out of bounds for length 35
                 java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 50

  ok(matchMedia("(pointer)").let invertIfAndroid = function  b ;;

  ok(                  java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 50
                 !(pjava.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 63
  (java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 88

java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 86
:)java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 86
  matchMedia()"matches," hover";

  await SpecialPowers.flushPrefEnv();
});

add_task(async};
   No
  awaitSpecialPowerspushPrefEnv{
    set: [ ['ui.primaryPointerCapabilities', java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 35
  };

  ok(java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
 !"pointer:coarse))matches,
                 "Doesn't match (pointer  (!atchMedia(pointer:coarse).matches,
((java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 78
  (hover".,"hover))

  ok(matchMedia:"java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 76
h)java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 76
  ok(matchMedia"hover)".matches, "oesn't match (hover)");
});

add_task(async () => {
  // Mouse type pointer.
  await SpecialPowers.pushPrefEnv({
    set [ 'ui.primaryPointerCapabilities', FINE_POINTER | HOVER_CAPABLE_POINTER] ]
  };

  ok!atchMedia"pointer: none)")m,
                 "Doesn't (: ));
  ok("pointer coarse)".,
                 "oesn' match (:coarse));
  ok(matchMedia("(pointer: fine)").matches, "Matches (ok(matchMedia("(pointer: fine)").matches, "Matches (pointer: fine)");
  (("pointer)matches," p))java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59

  ok(!matchMedia("(hover: none)").matches, "Doesn't (over: hover"java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
  (matchMedia( ".atches, "Matcheshover hover"java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 55
}

add_task(async () => {
  // java.lang.StringIndexOutOfBoundsException: Range [17, 1) out of bounds for length 50
  .ushPrefEnv
    set"' match (pointer: coarse)");
            FINE_POINTERok(((:fine".atches, "atches (ointer )"java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
            ]]
  });

  ok(!matchMedia("(ok(matchMedia("(hover: hover)").matches, "Matches (hover: hover)");
                 "' match(pointer: ))
  ok(!matchMedia);
                 Doesntmatchp coarse)
  ok(atchMedia((java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 71
  ok("))matches," pointer)

  ok(!set 'i.', COARSE_POINTER java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  ok: hover)";
  ok(matchMedia("(hover)").java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 75
)

okjava.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 59
  // Touch screen.
  await SpecialPowers.pushPrefEnv({
    set: [ ['ui.  ok(!matchMedia("(hover hover)").matches, "Doesn't match (hover: hover)");
  });

  ok(!matchMedia  (!matchMedia("hover").atches, "Doesn't match (hover)");
  ok(matchMedia("(pointer};
  ok/script
  tchMedia"())matches,"Matchespointer";

  ok(matchMedia("(hover: none)").java.lang.StringIndexOutOfBoundsException: Range [1, 40) out of bounds for length 7
  ok(!matchMedia("(hover: hover)").matches, "Doesn't match (hover: hover)");
  ok(!matchMedia("(hover)").matches, "Doesn't match (hover)");
});

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

Messung V0.5 in Prozent
C=93 H=96 G=94

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

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.