11cb0ef41Sopenharmony_ci<!DOCTYPE html>
21cb0ef41Sopenharmony_ci<html>
31cb0ef41Sopenharmony_ci    <head>
41cb0ef41Sopenharmony_ci        <meta charset="utf-8" />
51cb0ef41Sopenharmony_ci        <title>exception test of performance.mark and performance.measure</title>
61cb0ef41Sopenharmony_ci        <link rel="author" title="Intel" href="http://www.intel.com/" />
71cb0ef41Sopenharmony_ci        <link rel="help" href="https://w3c.github.io/user-timing/#extensions-performance-interface"/>
81cb0ef41Sopenharmony_ci        <script src="/resources/testharness.js"></script>
91cb0ef41Sopenharmony_ci        <script src="/resources/testharnessreport.js"></script>
101cb0ef41Sopenharmony_ci        <script src="resources/webperftestharness.js"></script>
111cb0ef41Sopenharmony_ci    </head>
121cb0ef41Sopenharmony_ci    <body>
131cb0ef41Sopenharmony_ci        <h1>Description</h1>
141cb0ef41Sopenharmony_ci        <p>This test validates exception scenarios of invoking mark() and measure() without parameter.</p>
151cb0ef41Sopenharmony_ci        <div id="log"></div>
161cb0ef41Sopenharmony_ci        <script>
171cb0ef41Sopenharmony_citest(function () {
181cb0ef41Sopenharmony_ci    assert_throws_js(TypeError, function () { window.performance.mark() });
191cb0ef41Sopenharmony_ci}, "window.performance.mark() throws a TypeError exception when invoke without a parameter.");
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_citest(function () {
221cb0ef41Sopenharmony_ci    assert_throws_js(TypeError, function () { window.performance.measure(); });
231cb0ef41Sopenharmony_ci}, "window.performance.measure() throws a TypeError exception when invoke without a parameter.");
241cb0ef41Sopenharmony_ci        </script>
251cb0ef41Sopenharmony_ci    </body>
261cb0ef41Sopenharmony_ci</html>
27