Update web-platform-tests to revision 0f0b7a7e353421b600ee555bf354d3a98bb603ae

This commit is contained in:
WPT Sync Bot 2019-02-01 20:48:40 -05:00
parent 363073568e
commit 71dcf37d55
175 changed files with 2749 additions and 678 deletions

View file

@ -2,13 +2,13 @@
test(function () {
var obs = new PerformanceObserver(function () { return true; });
assert_throws(new TypeError(), function () {
assert_throws(new SyntaxError(), function () {
obs.observe({});
});
assert_throws(new TypeError(), function () {
assert_throws(new SyntaxError(), function () {
obs.observe({entryType: []});
});
}, "no entryTypes throws a TypeError");
}, "no 'type' or 'entryTypes' throws a SyntaxError");
test(function () {
var obs = new PerformanceObserver(function () { return true; });
assert_throws(new TypeError(), function () {
@ -19,13 +19,13 @@
test(function () {
var obs = new PerformanceObserver(function () { return true; });
obs.observe({entryTypes: []});
}, "Empty sequence entryTypes is a no-op");
}, "Empty sequence entryTypes does not throw an exception.");
test(function () {
var obs = new PerformanceObserver(function () { return true; });
obs.observe({entryTypes: ["this-cannot-match-an-entryType"]});
obs.observe({entryTypes: ["marks","navigate", "resources"]});
}, "Unknown entryTypes are no-op");
}, "Unknown entryTypes do not throw an exception.");
test(function () {
var obs = new PerformanceObserver(function () { return true; });