Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / tabbed-pane-max-tab-width-calculation.html
blob24f9257eed8d4676f26fae2e73ac00cdf210aac7
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script type="text/javascript">
5 var test = function()
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();
21 </script>
22 </head>
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>
26 </body>
27 </html>