mojo/public/tools/mojom/mojom/parse/conditional_features_unittest.py
def testFilterUnion(self):
    """Test that UnionFields are correctly filtered from a Union."""
    union_source = """
      union MyUnion {
        [EnableIf=yellow]
        int32 a;
        [EnableIf=red]
        bool b;
      };
    """
    expected_source = """
      union MyUnion {
        [EnableIf=red]
        bool b;
      };
    """
    self.parseAndAssertEqual(union_source, expected_source)
Test that UnionFields are correctly filtered from a Union.
Test that UnionFields are correctly filtered from a Union.
Test that UnionFields are correctly filtered from a Union .
def testFilterUnion(self):
    union_source = """
      union MyUnion {
        [EnableIf=yellow]
        int32 a;
        [EnableIf=red]
        bool b;
      };
    """
    expected_source = """
      union MyUnion {
        [EnableIf=red]
        bool b;
      };
    """
    self.parseAndAssertEqual(union_source, expected_source)
def testFilterUnion ( self ) : union_source = """
      union MyUnion {
        [EnableIf=yellow]
        int32 a;
        [EnableIf=red]
        bool b;
      };
    """ expected_source = """
      union MyUnion {
        [EnableIf=red]
        bool b;
      };
    """ self . parseAndAssertEqual ( union_source , expected_source )
Test that UnionFields are correctly filtered from a Union.
Test that UnionFields are correctly filtered from a Union .
"""Test that UnionFields are correctly filtered from a Union."""
self