Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  test_media_query_serialization.html   Sprache: HTML

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


<!DOCTYPE HTML>
<html>
<head>
<title>Test media query list serialization</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<style>
  @media PrInT {}
  @media screen, PrInT, SPEECH {}

  @media GARbAGE7 {}
  @media AAAAA {}
  @media ZZZZZ {}

  @media NotAValidMediaType_!000 {}
  @media NotAValidMediaType_!000, AlsoInvalid!!!! {}

  @media PrInT, GARbAGE7, notAValidMediaType_!000 {}
</style>
<script type="application/javascript">

let expectedValues = [
  // Valid types
  ["print""Valid media types are ascii lowercased."],
  ["screen, print, speech""Media query lists with only valid types are ascii lowercased."],

  // Invalid types
  ["garbage7""Invalid media types are ascii lowercased."],
  ["aaaaa""Ascii conversion handles 'A' correctly."],
  ["zzzzz""Ascii conversion handles 'Z' correctly."],

  // Malformed types
  ["not all""Malformed media types are serialized to 'not all'."],
  ["not all, not all""Multiple malformed media types are each serialized to 'not all'."],

  // Mixes
  ["print, garbage7, not all""Media query lists with a mix of valid, invalid, and malformed types serialize " +
                               "as lowercase with malformed types changed to 'not all'."],
];

let sheet = document.styleSheets[1];

expectedValues.forEach(function (entry, index) {
  let rule = sheet.cssRules[index];
  let serializedList = rule.media.mediaText;
  is(serializedList, entry[0], entry[1]);
});

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

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

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge