OLD | NEW |
| (Empty) |
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[ | |
9 | |
10 function test() | |
11 { | |
12 var targetNode; | |
13 | |
14 InspectorTest.runTestSuite([ | |
15 function testDumpInitial(next) | |
16 { | |
17 function callback(node) | |
18 { | |
19 targetNode = node; | |
20 next(); | |
21 } | |
22 InspectorTest.selectNodeWithId("node", callback); | |
23 }, | |
24 | |
25 function testSetAttributeText(next) | |
26 { | |
27 function callback(error) | |
28 { | |
29 next(); | |
30 } | |
31 targetNode.setAttribute("foo", "foo2='baz2' foo3='baz3'", callback); | |
32 } | |
33 ]); | |
34 } | |
35 ]]> | |
36 </script> | |
37 </head> | |
38 | |
39 <body onload="runTest()"> | |
40 <p> | |
41 Tests that elements panel updates dom tree structure upon setting attribute on n
on HTML elements. PASSes if there is no crash. | |
42 </p> | |
43 | |
44 <div id="node"></div> | |
45 | |
46 </body> | |
47 </html> | |
48 </foreignObject> | |
49 </svg> | |
OLD | NEW |