Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/bindings/parser/tests/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 687 B image not shown  

Quelle  test_argument_keywords.py

  Sprache: Python
 

def WebIDLTest(parser, harness):
    parser.parse(
        """
    interface Foo {
      undefined foo(object constructor);
    };
    """
    )

    results = parser.finish()
    harness.check(len(results), 1"Should have an interface")
    iface = results[0]
    harness.check(len(iface.members), 1"Should have an operation")
    operation = iface.members[0]
    harness.check(len(operation.signatures()), 1"Should have one signature")
    (retval, args) = operation.signatures()[0]
    harness.check(len(args), 1"Should have an argument")
    harness.check(
        args[0].identifier.name,
        "constructor",
        "Should have an identifier named 'constructor'",
    )

Messung V0.5 in Prozent
C=93 H=93 G=92

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© 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.