Changed the postion of context menu to avaliable space
[framework/web/webkit-efl.git] / LayoutTests / inspector / timeline-dfs.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script type="text/javascript">
5
6 var test = function()
7 {
8     function dumper(record)
9     {
10         InspectorTest.addResult(record.name);
11     }
12
13     var records = [
14         {"name" : "a", "children" : [
15             {"name" : "aa", "children": [
16                 {"name" : "aaa"},
17                 {"name" : "aab"},
18             ]},
19             {"name" : "ab", "children":[
20                 {"name" : "aba"},
21                 {"name" : "abb"},
22             ]}
23         ]},
24         {"name" : "b", "children" : [
25             {"name" : "ba", "children" : [
26                 {"name" : "baa"},
27                 {"name" : "bab"},
28             ]},
29             {"name" : "bb", "children":[
30                 {"name" : "bba"},
31                 {"name" : "bbb"},
32             ]}
33         ]},
34     ];
35
36     InspectorTest.addResult("DFS preorder:");
37     WebInspector.TimelinePresentationModel.forAllRecords(records, dumper);
38     InspectorTest.addResult("");
39
40     InspectorTest.addResult("DFS postorder:");
41     WebInspector.TimelinePresentationModel.forAllRecords(records, null, dumper);
42     InspectorTest.completeTest();
43 }
44
45 </script>
46 </head>
47 <body onload="runTest()">
48 <p>Tests TimelinePresentationModel.forAllRecords function.</p>
49 </body>
50 </html>