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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tabbed-pane-max-tab-width-calculation.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 calculateAndDumpMaxWidth(measuredWidths, totalWidth) 7 function calculateAndDumpMaxWidth(measuredWidths, totalWidth)
8 { 8 {
9 var maxWidth = WebInspector.TabbedPane.prototype._calculateMaxWidth(meas uredWidths, totalWidth); 9 var maxWidth = UI.TabbedPane.prototype._calculateMaxWidth(measuredWidths , totalWidth);
10 InspectorTest.addResult("measuredWidths = [" + String(measuredWidths) + "], totalWidth = " + totalWidth + ", maxWidth = " + maxWidth + "."); 10 InspectorTest.addResult("measuredWidths = [" + String(measuredWidths) + "], totalWidth = " + totalWidth + ", maxWidth = " + maxWidth + ".");
11 } 11 }
12 12
13 calculateAndDumpMaxWidth([50, 70, 20], 150); 13 calculateAndDumpMaxWidth([50, 70, 20], 150);
14 calculateAndDumpMaxWidth([50, 80, 20], 150); 14 calculateAndDumpMaxWidth([50, 80, 20], 150);
15 calculateAndDumpMaxWidth([50, 90, 20], 150); 15 calculateAndDumpMaxWidth([50, 90, 20], 150);
16 calculateAndDumpMaxWidth([90, 90, 20], 150); 16 calculateAndDumpMaxWidth([90, 90, 20], 150);
17 calculateAndDumpMaxWidth([90, 80, 70], 150); 17 calculateAndDumpMaxWidth([90, 80, 70], 150);
18 18
19 InspectorTest.completeTest(); 19 InspectorTest.completeTest();
20 } 20 }
21 </script> 21 </script>
22 </head> 22 </head>
23 <body onload="runTest()"> 23 <body onload="runTest()">
24 <p>Tests tabbed pane max tab element width calculation.</p> 24 <p>Tests tabbed pane max tab element width calculation.</p>
25 <a href="https://bugs.webkit.org/show_bug.cgi?id=75005">Bug 75005</a> 25 <a href="https://bugs.webkit.org/show_bug.cgi?id=75005">Bug 75005</a>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698