mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
Bug 1469800 [wpt PR 11584] - Add console timing manual tests, a=testonly
Automatic update from web-platform-testsAdd console timing manual tests -- wpt-commits: eff6365ee9f4e9f010bebb9ef38b79313b3e0035 wpt-pr: 11584
This commit is contained in:
parent
bcc76beaef
commit
07cf512d5e
@ -1285,6 +1285,12 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"console/console-timing-logging-manual.html": [
|
||||
[
|
||||
"/console/console-timing-logging-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"core-aam/alert-manual.html": [
|
||||
[
|
||||
"/core-aam/alert-manual.html",
|
||||
@ -438548,6 +438554,10 @@
|
||||
"ee18f8a672534b478ca15990026638a73588fcf4",
|
||||
"testharness"
|
||||
],
|
||||
"console/console-timing-logging-manual.html": [
|
||||
"8b2d2e8d6675efacf99f49fec95c8be52f38407e",
|
||||
"manual"
|
||||
],
|
||||
"content-security-policy/META.yml": [
|
||||
"5819f0331b11875efb46ad15e02d28f59770cc9d",
|
||||
"support"
|
||||
|
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Console Timing Methods - Logging Manual Test</title>
|
||||
<meta name="author" title="Dominic Farolino" href="mailto:domfarolino@gmail.com">
|
||||
<meta name="assert" content="Console timing methods">
|
||||
<link rel="help" href="https://console.spec.whatwg.org/#timing">
|
||||
</head>
|
||||
<body>
|
||||
<p>Open the console inside the developer tools. It should contain entries whose contents are:</p>
|
||||
<p><code>default: <some time></code></p>
|
||||
<p><code>default: <some time></code></p>
|
||||
|
||||
<p><code>default: <some time></code></p>
|
||||
<p><code>default: <some time> extra data</code></p>
|
||||
<p><code>default: <some time></code></p>
|
||||
|
||||
<p><code>default: <some time></code></p>
|
||||
<p><code>default: <some time> extra data</code></p>
|
||||
<p><code>default: <some time></code></p>
|
||||
|
||||
<p><code>default: <some time></code></p>
|
||||
<p><code>default: <some time> extra data</code></p>
|
||||
<p><code>default: <some time></code></p>
|
||||
|
||||
<p><code>custom toString(): <some time></code></p>
|
||||
<p><code>custom toString(): <some time> extra data</code></p>
|
||||
<p><code>custom toString(): <some time></code></p>
|
||||
|
||||
<p><code>a label: <some time></code></p>
|
||||
<p><code>a label: <some time> extra data</code></p>
|
||||
<p><code>a label: <some time></code></p>
|
||||
|
||||
<p style="color:grey;">[some warning message indicating that a timer for label "b" does not exist]</p>
|
||||
|
||||
<script>
|
||||
console.time();
|
||||
console.timeLog();
|
||||
console.timeEnd();
|
||||
|
||||
console.time(undefined);
|
||||
console.timeLog(undefined);
|
||||
console.timeLog(undefined, "extra data");
|
||||
console.timeEnd(undefined);
|
||||
|
||||
console.time("default");
|
||||
console.timeLog("default");
|
||||
console.timeLog("default", "extra data");
|
||||
console.timeEnd("default");
|
||||
|
||||
console.time({toString() {return "default"}});
|
||||
console.timeLog({toString() {return "default"}});
|
||||
console.timeLog({toString() {return "default"}}, "extra data");
|
||||
console.timeEnd({toString() {return "default"}});
|
||||
|
||||
console.time({toString() {return "custom toString()"}});
|
||||
console.timeLog({toString() {return "custom toString()"}});
|
||||
console.timeLog({toString() {return "custom toString()"}}, "extra data");
|
||||
console.timeEnd({toString() {return "custom toString()"}});
|
||||
|
||||
console.time("a label");
|
||||
console.timeLog("a label");
|
||||
console.timeLog("a label", "extra data");
|
||||
console.timeEnd("a label");
|
||||
|
||||
console.timeLog("b"); // should produce a warning
|
||||
console.timeEnd("b"); // should produce a warning
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user