Revision 81bcc8db4c676828d4b33ccb90c94049ffd831cf authored by Mustaq Ahmed on 13 April 2018, 18:16:18 UTC, committed by Blink WPT Bot on 13 April 2018, 18:25:25 UTC
Also added web-platform-tests. Blink intent thread: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/G2s1Ol3qcgA Closes https://github.com/w3c/pointerevents/issues/167 Bug: 827271 Change-Id: I8429b9541f8cfc38223b3a34116b74c2aba92ee5 Reviewed-on: https://chromium-review.googlesource.com/986877 Reviewed-by: Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Mustaq Ahmed <mustaq@chromium.org> Cr-Commit-Position: refs/heads/master@{#550683}
1 parent 6ad1b51
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 ...