Chromium Code Reviews| Index: LayoutTests/inspector/elements/set-outer-html-for-xhtml.xhtml |
| diff --git a/LayoutTests/inspector/elements/set-outer-html-for-xhtml.xhtml b/LayoutTests/inspector/elements/set-outer-html-for-xhtml.xhtml |
| index c020ac25d195e453c6e459b9c500bf032f4556fa..45c0289e1052ff83d34ef52c724fc40a237a7e79 100644 |
| --- a/LayoutTests/inspector/elements/set-outer-html-for-xhtml.xhtml |
| +++ b/LayoutTests/inspector/elements/set-outer-html-for-xhtml.xhtml |
| @@ -1,4 +1,4 @@ |
| -<html xmlns="http://www.w3.org/1999/xhtml"> |
| +<html id="html" xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <script src="../../http/tests/inspector/inspector-test.js"></script> |
| @@ -44,6 +44,18 @@ function test() |
| function testChangeNodeName(next) |
| { |
| InspectorTest.patchOuterHTML("<h2>Getting involved</h2>", "<h3>Getting involved</h3>", next); |
| + }, |
| + |
| + function testInvalidDocumentDoesNotCrash(next) |
| + { |
| + var htmlId = InspectorTest.expandedNodeWithId("html").id; |
| + DOMAgent.setOuterHTML(htmlId, "foo", callback); |
| + |
| + function callback() |
| + { |
| + InspectorTest.addResult("No crash"); |
|
aandrey
2014/11/14 16:30:53
nit: "PASS: No crash"
apavlov
2014/11/17 13:37:18
Done.
|
| + next(); |
| + } |
| } |
| ]); |
| } |