mojo/public/tools/mojom/mojom/parse/parser_unittest.py
def testSourceWithCrLfs(self):
    """Tests a .mojom source with CR-LFs instead of LFs."""

    source = "// This is a comment.\r\n\r\nmodule my_module;\r\n"
    expected = ast.Mojom(
        ast.Module(('IDENTIFIER', 'my_module'), None), ast.ImportList(), [])
    self.assertEquals(parser.Parse(source, "my_file.mojom"), expected)
Tests a .mojom source with CR-LFs instead of LFs.
Tests a .mojom source with CR-LFs instead of LFs.
Tests a . mojom source with CR - LFs instead of LFs .
def testSourceWithCrLfs(self):
    source = "// This is a comment.\r\n\r\nmodule my_module;\r\n"
    expected = ast.Mojom(
        ast.Module(('IDENTIFIER', 'my_module'), None), ast.ImportList(), [])
    self.assertEquals(parser.Parse(source, "my_file.mojom"), expected)
def testSourceWithCrLfs ( self ) : source = "// This is a comment.\r\n\r\nmodule my_module;\r\n" expected = ast . Mojom ( ast . Module ( ( 'IDENTIFIER' , 'my_module' ) , None ) , ast . ImportList ( ) , [ ] ) self . assertEquals ( parser . Parse ( source , "my_file.mojom" ) , expected )
Tests a .mojom source with CR-LFs instead of LFs.
Tests a . mojom source with CR - LFs instead of LFs .
"""Tests a .mojom source with CR-LFs instead of LFs."""
self