mojo/public/tools/mojom/version_compatibility_unittest.py
def testNewUnionFieldWithInvalidMinVersion(self):
    """Adding a new field using an existing MinVersion breaks backward-
    compatibility."""
    self.assertNotBackwardCompatible(
        """\
        union U {
          string a;
          [MinVersion=1] string b;
        };
        """, """\
        union U {
          string a;
          [MinVersion=1] string b;
          [MinVersion=1] string c;
        };""")
Adding a new field using an existing MinVersion breaks backward-
    compatibility.
Adding a new field using an existing MinVersion breaks backward
compatibility.
Adding a new field using an existing MinVersion breaks backward compatibility .
def testNewUnionFieldWithInvalidMinVersion(self):
    self.assertNotBackwardCompatible(
        """\
        union U {
          string a;
          [MinVersion=1] string b;
        };
        """, """\
        union U {
          string a;
          [MinVersion=1] string b;
          [MinVersion=1] string c;
        };""")
def testNewUnionFieldWithInvalidMinVersion ( self ) : self . assertNotBackwardCompatible ( """\
        union U {
          string a;
          [MinVersion=1] string b;
        };
        """ , """\
        union U {
          string a;
          [MinVersion=1] string b;
          [MinVersion=1] string c;
        };""" )
Adding a new field using an existing MinVersion breaks backward
compatibility.
Adding a new field using an existing MinVersion breaks backward compatibility .
"""Adding a new field using an existing MinVersion breaks backward-
    compatibility."""
self