Revision 614c1ccac5f885e58444fe74a2aedd120d2ca73f authored by Marcos Cáceres on 21 August 2018, 05:04:44 UTC, committed by GitHub on 21 August 2018, 05:04:44 UTC
1 parent 4797b9c
measure_syntax_err.any.js
test(function () {
self.performance.mark("existing_mark");
var entries = self.performance.getEntriesByName("existing_mark");
assert_equals(entries.length, 1);
self.performance.measure("measure", "existing_mark");
}, "Create a mark \"existing_mark\"");
test(function () {
assert_throws(new SyntaxError(), function () {
self.performance.measure("measure", "mark");
});
}, "self.performance.measure(\"measure\", \"mark\"), where \"mark\" is a non-existent mark, " +
"throws a SyntaxError exception.");
test(function () {
assert_throws(new SyntaxError(), function () {
self.performance.measure("measure", "mark", "existing_mark");
});
}, "self.performance.measure(\"measure\", \"mark\", \"existing_mark\"), where \"mark\" is a " +
"non-existent mark, throws a SyntaxError exception.");
test(function () {
assert_throws(new SyntaxError(), function () {
self.performance.measure("measure", "existing_mark", "mark");
});
}, "self.performance.measure(\"measure\", \"existing_mark\", \"mark\"), where \"mark\" " +
"is a non-existent mark, throws a SyntaxError exception.");
test(function () {
assert_throws(new SyntaxError(), function () {
self.performance.measure("measure", "mark", "mark");
});
}, "self.performance.measure(\"measure\", \"mark\", \"mark\"), where \"mark\" is a " +
"non-existent mark, throws a SyntaxError exception.");
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...