Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector-enabled / resources / console-clear-arguments-test.js
blobb0046dd65d25d41127f1ed741c75b31ed54026de
1 function print(text)
3 var output = document.getElementById("output");
4 var div = document.createElement("div");
5 div.textContent = text;
6 output.appendChild(div);
9 function dumpConsoleMessageArgumentCounts()
11 var consoleMessageArgumentCounts = window.internals.consoleMessageArgumentCounts(document);
12 if (consoleMessageArgumentCounts.length === 3)
13 print("PASSED: found argument counts for 3 messages");
14 else
15 print("FAILED: unexpected number of messages: " + consoleMessageArgumentCounts.length);
17 for (var i = 0; i < consoleMessageArgumentCounts.length; i++) {
18 var count = consoleMessageArgumentCounts[i];
19 if (count == 0)
20 print("PASSED: message #" + i + " has no arguments.");
21 else
22 print("FAILED: message #" + i + " has " + count + " arguments.");