3 <script src=
"../http/tests/inspector/inspector-test.js"></script>
4 <script type=
"text/javascript">
7 function calculateAndDumpMaxWidth(measuredWidths
, totalWidth
)
9 var maxWidth
= WebInspector
.TabbedPane
.prototype._calculateMaxWidth(measuredWidths
, totalWidth
);
10 InspectorTest
.addResult("measuredWidths = [" + String(measuredWidths
) + "], totalWidth = " + totalWidth
+ ", maxWidth = " + maxWidth
+ ".");
13 calculateAndDumpMaxWidth([50, 70, 20], 150);
14 calculateAndDumpMaxWidth([50, 80, 20], 150);
15 calculateAndDumpMaxWidth([50, 90, 20], 150);
16 calculateAndDumpMaxWidth([90, 90, 20], 150);
17 calculateAndDumpMaxWidth([90, 80, 70], 150);
19 InspectorTest
.completeTest();
23 <body onload=
"runTest()">
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>