11cb0ef41Sopenharmony_ci<!DOCTYPE html> 21cb0ef41Sopenharmony_ci<html> 31cb0ef41Sopenharmony_ci<head> 41cb0ef41Sopenharmony_ci<title>Console Count Reset - Logging Manual Test</title> 51cb0ef41Sopenharmony_ci<meta name="author" title="Dominic Farolino" href="mailto:domfarolino@gmail.com"> 61cb0ef41Sopenharmony_ci<meta name="assert" content="Console countReset method"> 71cb0ef41Sopenharmony_ci<link rel="help" href="https://console.spec.whatwg.org/#countreset"> 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: 1</code></p> 121cb0ef41Sopenharmony_ci<p><code>default: 1</code></p> 131cb0ef41Sopenharmony_ci<p><code>default: 1</code></p> 141cb0ef41Sopenharmony_ci<p><code>default: 1</code></p> 151cb0ef41Sopenharmony_ci<p><code>default: 1</code></p> 161cb0ef41Sopenharmony_ci<p><code>default: 1</code></p> 171cb0ef41Sopenharmony_ci<p><code>default: 1</code></p> 181cb0ef41Sopenharmony_ci<p><code>default: 1</code></p> 191cb0ef41Sopenharmony_ci<p><code>a label: 1</code></p> 201cb0ef41Sopenharmony_ci<p><code>a label: 1</code></p> 211cb0ef41Sopenharmony_ci<p style="color:grey;">[some warning message indicating that a count for label "b" does not exist]</p> 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ci<script> 241cb0ef41Sopenharmony_ciconsole.count(); 251cb0ef41Sopenharmony_ciconsole.countReset(); 261cb0ef41Sopenharmony_ciconsole.count(); 271cb0ef41Sopenharmony_ci 281cb0ef41Sopenharmony_ciconsole.count(undefined); 291cb0ef41Sopenharmony_ciconsole.countReset(undefined); 301cb0ef41Sopenharmony_ciconsole.count(undefined); 311cb0ef41Sopenharmony_ci 321cb0ef41Sopenharmony_ciconsole.count("default"); 331cb0ef41Sopenharmony_ciconsole.countReset("default"); 341cb0ef41Sopenharmony_ciconsole.count("default"); 351cb0ef41Sopenharmony_ci 361cb0ef41Sopenharmony_ciconsole.count({toString() {return "default"}}); 371cb0ef41Sopenharmony_ciconsole.countReset({toString() {return "default"}}); 381cb0ef41Sopenharmony_ciconsole.count({toString() {return "default"}}); 391cb0ef41Sopenharmony_ci 401cb0ef41Sopenharmony_ciconsole.count("a label"); 411cb0ef41Sopenharmony_ciconsole.countReset(); 421cb0ef41Sopenharmony_ciconsole.count("a label"); 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_ciconsole.countReset("b"); // should produce a warning 451cb0ef41Sopenharmony_ci</script> 461cb0ef41Sopenharmony_ci</body> 471cb0ef41Sopenharmony_ci</html> 48