Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-string-format.html
blob6d3db1c947781a7eeb9549732e417dcc369f7958
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
6 function test()
8 var params = [
9 ["%T", 1],
10 ["10% x 20%", "of the original"],
11 ["%%", ""],
12 ["%%%", ""],
13 ["%%", 1, 2, 3],
14 ["%%d", 1],
15 ["%%d%", 1],
16 ["%%%d%", 1],
17 ["%%%d%%", 1],
18 ["%", ""],
19 ["% %d", 1],
20 ["%d % %s", 1, "foo"],
21 ["%.2f", 0.12345],
22 ["foo%555 bar", ""],
24 for (var i = 0; i < params.length; ++i)
25 InspectorTest.addResult("String.sprintf(" + params[i].join(", ") + ") = \"" + String.sprintf.apply(String, params[i]) + "\"");
26 InspectorTest.completeTest();
28 </script>
29 </head>
31 <body onload="runTest()">
32 <p>
33 Tests that formatting processes '%' properly in case of missing formatters.
34 </p>
36 </body>
37 </html>