| 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 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> |
| OLD | NEW |