Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (25 sloc) 0.941 kB
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script type="text/javascript">
var test = function()
{
function calculateAndDumpMaxWidth(measuredWidths, totalWidth)
{
var maxWidth = WebInspector.TabbedPane.prototype._calculateMaxWidth(measuredWidths, totalWidth);
InspectorTest.addResult("measuredWidths = [" + String(measuredWidths) + "], totalWidth = " + totalWidth + ", maxWidth = " + maxWidth + ".");
}
calculateAndDumpMaxWidth([50, 70, 20], 150);
calculateAndDumpMaxWidth([50, 80, 20], 150);
calculateAndDumpMaxWidth([50, 90, 20], 150);
calculateAndDumpMaxWidth([90, 90, 20], 150);
calculateAndDumpMaxWidth([90, 80, 70], 150);
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>Tests tabbed pane max tab element width calculation.</p>
<a href="https://bugs.webkit.org/show_bug.cgi?id=75005">Bug 75005</a>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.