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 src="../http/tests/inspector/sources-test.js"></script> | 4 <script src="../http/tests/inspector/sources-test.js"></script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 var test = function() | 6 var test = function() |
7 { | 7 { |
8 | 8 |
9 function dumpHistory(history) | 9 function dumpHistory(history) |
10 { | 10 { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Emulate switching between tabs. | 45 // Emulate switching between tabs. |
46 updateAndDump(history, [url(2), url(3), url(1)]); | 46 updateAndDump(history, [url(2), url(3), url(1)]); |
47 updateAndDump(history, [url(1), url(2), url(3)]); | 47 updateAndDump(history, [url(1), url(2), url(3)]); |
48 // Emulate opening of several tabs from another page. | 48 // Emulate opening of several tabs from another page. |
49 updateAndDump(history, [url(11)]); | 49 updateAndDump(history, [url(11)]); |
50 updateAndDump(history, [url(12), url(11)]); | 50 updateAndDump(history, [url(12), url(11)]); |
51 updateAndDump(history, [url(13), url(12), url(11)]); | 51 updateAndDump(history, [url(13), url(12), url(11)]); |
52 // ... and switching between them. | 52 // ... and switching between them. |
53 updateAndDump(history, [url(12), url(13), url(11)]); | 53 updateAndDump(history, [url(12), url(13), url(11)]); |
54 updateAndDump(history, [url(11), url(12), url(13)]); | 54 updateAndDump(history, [url(11), url(12), url(13)]); |
55 updateScrollAndSelectionAndDump(history, url(11), 10, new Common.TextRange(1
5, 5, 15, 10)); | 55 updateScrollAndSelectionAndDump(history, url(11), 10, new TextUtils.TextRang
e(15, 5, 15, 10)); |
56 // Now close some tabs. | 56 // Now close some tabs. |
57 removeAndDump(history, url(11)); | 57 removeAndDump(history, url(11)); |
58 removeAndDump(history, url(13)); | 58 removeAndDump(history, url(13)); |
59 // Now open some other instead of them. | 59 // Now open some other instead of them. |
60 updateAndDump(history, [url(14), url(12)]); | 60 updateAndDump(history, [url(14), url(12)]); |
61 updateAndDump(history, [url(15), url(14), url(12)]); | 61 updateAndDump(history, [url(15), url(14), url(12)]); |
62 updateAndDump(history, [url(16), url(15), url(14), url(12)]); | 62 updateAndDump(history, [url(16), url(15), url(14), url(12)]); |
63 // Close all of them one by one. | 63 // Close all of them one by one. |
64 removeAndDump(history, url(16)); | 64 removeAndDump(history, url(16)); |
65 removeAndDump(history, url(15)); | 65 removeAndDump(history, url(15)); |
66 removeAndDump(history, url(14)); | 66 removeAndDump(history, url(14)); |
67 removeAndDump(history, url(12)); | 67 removeAndDump(history, url(12)); |
68 removeAndDump(history, url(1)); | 68 removeAndDump(history, url(1)); |
69 removeAndDump(history, url(2)); | 69 removeAndDump(history, url(2)); |
70 removeAndDump(history, url(3)); | 70 removeAndDump(history, url(3)); |
71 | 71 |
72 InspectorTest.completeTest(); | 72 InspectorTest.completeTest(); |
73 } | 73 } |
74 </script> | 74 </script> |
75 </head> | 75 </head> |
76 <body onload="runTest()"> | 76 <body onload="runTest()"> |
77 <p>Tests history saving logic in TabbedEditorContainer.</p> | 77 <p>Tests history saving logic in TabbedEditorContainer.</p> |
78 <a href="https://bugs.webkit.org/show_bug.cgi?id=76912">Bug 76912</a> | 78 <a href="https://bugs.webkit.org/show_bug.cgi?id=76912">Bug 76912</a> |
79 </body> | 79 </body> |
80 </html> | 80 </html> |
OLD | NEW |