tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_union_as_length_attr.py (352B)


      1 def WebIDLTest(parser, harness):
      2    parser.parse(
      3        """
      4        interface Foo {
      5        };
      6 
      7        interface Bar {
      8        };
      9 
     10        typedef (Foo or Bar) Baz;
     11 
     12        interface Test {
     13          attribute Baz length;
     14        };
     15    """
     16    )
     17 
     18    parser.finish()
     19 
     20    harness.ok(True, "TestUnionAsLengthAttr interface parsed without error.")