| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import mojo_lexer | 5 import mojo_lexer |
| 6 import mojo_parser | 6 import mojo_parser |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 | 9 |
| 10 class MojoParserTest(unittest.TestCase): | 10 class MojoParserTest(unittest.TestCase): |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 """ | 222 """ |
| 223 with self.assertRaisesRegexp( | 223 with self.assertRaisesRegexp( |
| 224 mojo_lexer.LexError, | 224 mojo_lexer.LexError, |
| 225 r"^my_file\.mojom:1: Error: " | 225 r"^my_file\.mojom:1: Error: " |
| 226 r"Octal and hexadecimal ordinal values not allowed$"): | 226 r"Octal and hexadecimal ordinal values not allowed$"): |
| 227 mojo_parser.Parse(source5, "my_file.mojom") | 227 mojo_parser.Parse(source5, "my_file.mojom") |
| 228 | 228 |
| 229 | 229 |
| 230 if __name__ == "__main__": | 230 if __name__ == "__main__": |
| 231 unittest.main() | 231 unittest.main() |
| OLD | NEW |