11cb0ef41Sopenharmony_citest(function () {
21cb0ef41Sopenharmony_ci   self.performance.mark("existing_mark");
31cb0ef41Sopenharmony_ci   var entries = self.performance.getEntriesByName("existing_mark");
41cb0ef41Sopenharmony_ci   assert_equals(entries.length, 1);
51cb0ef41Sopenharmony_ci   self.performance.measure("measure", "existing_mark");
61cb0ef41Sopenharmony_ci}, "Create a mark \"existing_mark\"");
71cb0ef41Sopenharmony_citest(function () {
81cb0ef41Sopenharmony_ci   assert_throws_dom("SyntaxError", function () {
91cb0ef41Sopenharmony_ci       self.performance.measure("measure", "mark");
101cb0ef41Sopenharmony_ci   });
111cb0ef41Sopenharmony_ci}, "self.performance.measure(\"measure\", \"mark\"), where \"mark\" is a non-existent mark, " +
121cb0ef41Sopenharmony_ci                          "throws a SyntaxError exception.");
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_citest(function () {
151cb0ef41Sopenharmony_ci   assert_throws_dom("SyntaxError", function () {
161cb0ef41Sopenharmony_ci       self.performance.measure("measure", "mark", "existing_mark");
171cb0ef41Sopenharmony_ci   });
181cb0ef41Sopenharmony_ci}, "self.performance.measure(\"measure\", \"mark\", \"existing_mark\"), where \"mark\" is a " +
191cb0ef41Sopenharmony_ci                          "non-existent mark, throws a SyntaxError exception.");
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_citest(function () {
221cb0ef41Sopenharmony_ci   assert_throws_dom("SyntaxError", function () {
231cb0ef41Sopenharmony_ci       self.performance.measure("measure", "existing_mark", "mark");
241cb0ef41Sopenharmony_ci   });
251cb0ef41Sopenharmony_ci}, "self.performance.measure(\"measure\", \"existing_mark\", \"mark\"), where \"mark\" " +
261cb0ef41Sopenharmony_ci                            "is a non-existent mark, throws a SyntaxError exception.");
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_citest(function () {
291cb0ef41Sopenharmony_ci   assert_throws_dom("SyntaxError", function () {
301cb0ef41Sopenharmony_ci       self.performance.measure("measure", "mark", "mark");
311cb0ef41Sopenharmony_ci   });
321cb0ef41Sopenharmony_ci}, "self.performance.measure(\"measure\", \"mark\", \"mark\"), where \"mark\" is a " +
331cb0ef41Sopenharmony_ci                          "non-existent mark, throws a SyntaxError exception.");
34