mojo/public/tools/mojom/version_compatibility_unittest.py
def testNewInterfaceMethodWithInvalidMinVersion(self):
    """Adding a new method to an existing version is not backward-compatible."""
    self.assertNotBackwardCompatible(
        """\
        interface F {
          A();
          [MinVersion=1] B();
        };
        """, """\
        interface F {
          A();
          [MinVersion=1] B();
          [MinVersion=1] C();
        };
        """)
Adding a new method to an existing version is not backward-compatible.
Adding a new method to an existing version is not backward-compatible.
Adding a new method to an existing version is not backward - compatible .
def testNewInterfaceMethodWithInvalidMinVersion(self):
    self.assertNotBackwardCompatible(
        """\
        interface F {
          A();
          [MinVersion=1] B();
        };
        """, """\
        interface F {
          A();
          [MinVersion=1] B();
          [MinVersion=1] C();
        };
        """)
def testNewInterfaceMethodWithInvalidMinVersion ( self ) : self . assertNotBackwardCompatible ( """\
        interface F {
          A();
          [MinVersion=1] B();
        };
        """ , """\
        interface F {
          A();
          [MinVersion=1] B();
          [MinVersion=1] C();
        };
        """ )
Adding a new method to an existing version is not backward-compatible.
Adding a new method to an existing version is not backward - compatible .
"""Adding a new method to an existing version is not backward-compatible."""
self