OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script> | 4 <script> |
5 function test() | 5 function test() |
6 { | 6 { |
7 InspectorTest.runTestSuite([ | 7 InspectorTest.runTestSuite([ |
8 function testSetUp(next) | 8 function testSetUp(next) |
9 { | 9 { |
10 WebInspector.inspectorView.showPanel("elements"); | 10 WebInspector.inspectorView.showPanel("elements"); |
11 WebInspector.domAgent.requestDocument(next); | 11 WebInspector.domModel.requestDocument(next); |
12 }, | 12 }, |
13 | 13 |
14 function testNoCrash(next) | 14 function testNoCrash(next) |
15 { | 15 { |
16 WebInspector.domAgent.performSearch("FooBar", next); | 16 WebInspector.domModel.performSearch("FooBar", next); |
17 } | 17 } |
18 ]); | 18 ]); |
19 } | 19 } |
20 </script> | 20 </script> |
21 </head> | 21 </head> |
22 | 22 |
23 <body> | 23 <body> |
24 <p> | 24 <p> |
25 Tests that elements panel search is not crashing on documentElement-less cases. | 25 Tests that elements panel search is not crashing on documentElement-less cases. |
26 </p> | 26 </p> |
27 <iframe src="resources/dom-search-crash-iframe.html" onload="runTest()"></iframe
> | 27 <iframe src="resources/dom-search-crash-iframe.html" onload="runTest()"></iframe
> |
28 </body> | 28 </body> |
29 </html> | 29 </html> |
OLD | NEW |