11cb0ef41Sopenharmony_ci<!DOCTYPE html>
21cb0ef41Sopenharmony_ci<html>
31cb0ef41Sopenharmony_ci<head>
41cb0ef41Sopenharmony_ci<title>Console Timing Methods - Logging Manual Test</title>
51cb0ef41Sopenharmony_ci<meta name="author" title="Dominic Farolino" href="mailto:domfarolino@gmail.com">
61cb0ef41Sopenharmony_ci<meta name="assert" content="Console timing methods">
71cb0ef41Sopenharmony_ci<link rel="help" href="https://console.spec.whatwg.org/#timing">
81cb0ef41Sopenharmony_ci</head>
91cb0ef41Sopenharmony_ci<body>
101cb0ef41Sopenharmony_ci<p>Open the console inside the developer tools. It should contain entries whose contents are:</p>
111cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
121cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
151cb0ef41Sopenharmony_ci<p><code>default: &lt;some time> extra data</code></p>
161cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
191cb0ef41Sopenharmony_ci<p><code>default: &lt;some time> extra data</code></p>
201cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
211cb0ef41Sopenharmony_ci
221cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
231cb0ef41Sopenharmony_ci<p><code>default: &lt;some time> extra data</code></p>
241cb0ef41Sopenharmony_ci<p><code>default: &lt;some time></code></p>
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ci<p><code>custom toString(): &lt;some time></code></p>
271cb0ef41Sopenharmony_ci<p><code>custom toString(): &lt;some time> extra data</code></p>
281cb0ef41Sopenharmony_ci<p><code>custom toString(): &lt;some time></code></p>
291cb0ef41Sopenharmony_ci
301cb0ef41Sopenharmony_ci<p><code>a label: &lt;some time></code></p>
311cb0ef41Sopenharmony_ci<p><code>a label: &lt;some time> extra data</code></p>
321cb0ef41Sopenharmony_ci<p><code>a label: &lt;some time></code></p>
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_ci<p style="color:grey;">[some warning message indicating that a timer for label "b" does not exist]</p>
351cb0ef41Sopenharmony_ci
361cb0ef41Sopenharmony_ci<script>
371cb0ef41Sopenharmony_ciconsole.time();
381cb0ef41Sopenharmony_ciconsole.timeLog();
391cb0ef41Sopenharmony_ciconsole.timeEnd();
401cb0ef41Sopenharmony_ci
411cb0ef41Sopenharmony_ciconsole.time(undefined);
421cb0ef41Sopenharmony_ciconsole.timeLog(undefined);
431cb0ef41Sopenharmony_ciconsole.timeLog(undefined, "extra data");
441cb0ef41Sopenharmony_ciconsole.timeEnd(undefined);
451cb0ef41Sopenharmony_ci
461cb0ef41Sopenharmony_ciconsole.time("default");
471cb0ef41Sopenharmony_ciconsole.timeLog("default");
481cb0ef41Sopenharmony_ciconsole.timeLog("default", "extra data");
491cb0ef41Sopenharmony_ciconsole.timeEnd("default");
501cb0ef41Sopenharmony_ci
511cb0ef41Sopenharmony_ciconsole.time({toString() {return "default"}});
521cb0ef41Sopenharmony_ciconsole.timeLog({toString() {return "default"}});
531cb0ef41Sopenharmony_ciconsole.timeLog({toString() {return "default"}}, "extra data");
541cb0ef41Sopenharmony_ciconsole.timeEnd({toString() {return "default"}});
551cb0ef41Sopenharmony_ci
561cb0ef41Sopenharmony_ciconsole.time({toString() {return "custom toString()"}});
571cb0ef41Sopenharmony_ciconsole.timeLog({toString() {return "custom toString()"}});
581cb0ef41Sopenharmony_ciconsole.timeLog({toString() {return "custom toString()"}}, "extra data");
591cb0ef41Sopenharmony_ciconsole.timeEnd({toString() {return "custom toString()"}});
601cb0ef41Sopenharmony_ci
611cb0ef41Sopenharmony_ciconsole.time("a label");
621cb0ef41Sopenharmony_ciconsole.timeLog("a label");
631cb0ef41Sopenharmony_ciconsole.timeLog("a label", "extra data");
641cb0ef41Sopenharmony_ciconsole.timeEnd("a label");
651cb0ef41Sopenharmony_ci
661cb0ef41Sopenharmony_ciconsole.timeLog("b"); // should produce a warning
671cb0ef41Sopenharmony_ciconsole.timeEnd("b"); // should produce a warning
681cb0ef41Sopenharmony_ci</script>
691cb0ef41Sopenharmony_ci</body>
701cb0ef41Sopenharmony_ci</html>
71