| Index: third_party/WebKit/LayoutTests/inspector/console/console-time.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-time.html b/third_party/WebKit/LayoutTests/inspector/console/console-time.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..24762f4173897d35e4b448e48345bc956d4b3b6f
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/console/console-time.html
|
| @@ -0,0 +1,39 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../http/tests/inspector/console-test.js"></script>
|
| +<script>
|
| +
|
| +function testFunction()
|
| +{
|
| + console.time();
|
| + console.timeEnd();
|
| + console.time("42");
|
| + console.timeEnd("42");
|
| + console.time(239)
|
| + console.timeEnd(239);
|
| + console.time({});
|
| + console.timeEnd({});
|
| +}
|
| +
|
| +function test()
|
| +{
|
| + InspectorTest.waitUntilNthMessageReceived(4, dumpMessagesAndCompleTest);
|
| + InspectorTest.evaluateInPage("testFunction()");
|
| +
|
| + function dumpMessagesAndCompleTest()
|
| + {
|
| + var messages = InspectorTest.dumpConsoleMessagesIntoArray();
|
| + messages = messages.map(message => message.replace(/\d+\.\d+ms/, "<time>"));
|
| + InspectorTest.addResults(messages);
|
| + InspectorTest.completeTest();
|
| + }
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>
|
| +console.time / console.timeEnd tests.
|
| +</p>
|
| +</body>
|
| +</html>
|
|
|