Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / edit / set-attribute-non-html.svg
blobebff5d3a12c26a42914612a896dbe74c689d14a6
1 <?xml version="1.0"?>
2 <svg xmlns="http://www.w3.org/2000/svg">
3 <foreignObject>
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <script src="../../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../../http/tests/inspector/elements-test.js"></script>
8 <script><![CDATA[
10 function test()
12 var targetNode;
14 InspectorTest.runTestSuite([
15 function testDumpInitial(next)
17 function callback(node)
19 targetNode = node;
20 next();
22 InspectorTest.selectNodeWithId("node", callback);
25 function testSetAttributeText(next)
27 function callback(error)
29 next();
31 targetNode.setAttribute("foo", "foo2='baz2' foo3='baz3'", callback);
33 ]);
35 ]]>
36 </script>
37 </head>
39 <body onload="runTest()">
40 <p>
41 Tests that elements panel updates dom tree structure upon setting attribute on non HTML elements. PASSes if there is no crash.
42 </p>
44 <div id="node"></div>
46 </body>
47 </html>
48 </foreignObject>
49 </svg>