Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 description( | 1 description( |
| 2 "This test checks that a correct exception is raised when calculating the base v alue of a dot expression fails." | 2 "This test checks that a correct exception is raised when calculating the base v alue of a dot expression fails." |
| 3 ); | 3 ); |
| 4 | 4 |
| 5 // Should be a DOM exception, not just some "TypeError: Null value". | 5 // Should throw TypeError with appropriate message. |
| 6 shouldThrow('(document.appendChild()).foobar()', '"NotFoundError: Failed to exec ute \'appendChild\' on \'Node\': The new child element is null."'); | 6 shouldThrow('(document.appendChild()).foobar()', '"TypeError: Failed to execute \'appendChild\' on \'Node\': 1 argument required, but only 0 present."'); |
| OLD | NEW |