Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tabbed-pane-tabs-to-show.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 type="text/javascript"> 4 <script type="text/javascript">
5 var test = function() 5 var test = function()
6 { 6 {
7 function createFakeTab(title, width) 7 function createFakeTab(title, width)
8 { 8 {
9 function toString() 9 function toString()
10 { 10 {
11 return title; 11 return title;
12 } 12 }
13 return { width: function() { return width; }, title: title, toString: to String }; 13 return { width: function() { return width; }, title: title, toString: to String };
14 } 14 }
15 15
16 var tabbedPane = new WebInspector.TabbedPane(); 16 var tabbedPane = new UI.TabbedPane();
17 tabbedPane.setAllowTabReorder(true, true); 17 tabbedPane.setAllowTabReorder(true, true);
18 18
19 var dropDownButtonMeasuredWidth = 10; 19 var dropDownButtonMeasuredWidth = 10;
20 function getTabsToShowAndDumpResults(tabsOrdered, tabsHistory, totalWidth) 20 function getTabsToShowAndDumpResults(tabsOrdered, tabsHistory, totalWidth)
21 { 21 {
22 var tabsToShowIndexes = WebInspector.TabbedPane.prototype._tabsToShowInd exes.call(tabbedPane, tabsOrdered, tabsHistory, totalWidth, dropDownButtonMeasur edWidth); 22 var tabsToShowIndexes = UI.TabbedPane.prototype._tabsToShowIndexes.call( tabbedPane, tabsOrdered, tabsHistory, totalWidth, dropDownButtonMeasuredWidth);
23 InspectorTest.addResult(" tabsToShowIndexes = [" + String(tabsToShowI ndexes) + "]"); 23 InspectorTest.addResult(" tabsToShowIndexes = [" + String(tabsToShowI ndexes) + "]");
24 } 24 }
25 25
26 function testWidthsAndHistory(widths, history, totalWidth) 26 function testWidthsAndHistory(widths, history, totalWidth)
27 { 27 {
28 var tabsOrdered = []; 28 var tabsOrdered = [];
29 var tabsHistory = []; 29 var tabsHistory = [];
30 for (var i = 0; i < widths.length; i++) 30 for (var i = 0; i < widths.length; i++)
31 tabsOrdered.push(createFakeTab("tab " + i, widths[i])); 31 tabsOrdered.push(createFakeTab("tab " + i, widths[i]));
32 for (var i = 0; i < history.length; i++) 32 for (var i = 0; i < history.length; i++)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 InspectorTest.completeTest(); 69 InspectorTest.completeTest();
70 } 70 }
71 </script> 71 </script>
72 </head> 72 </head>
73 <body onload="runTest()"> 73 <body onload="runTest()">
74 <p>Tests tabbed pane tabs to show calculation.</p> 74 <p>Tests tabbed pane tabs to show calculation.</p>
75 <a href="https://bugs.webkit.org/show_bug.cgi?id=75085">Bug 75085</a> 75 <a href="https://bugs.webkit.org/show_bug.cgi?id=75085">Bug 75085</a>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698