mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 0f0b7a7e353421b600ee555bf354d3a98bb603ae
This commit is contained in:
parent
363073568e
commit
71dcf37d55
175 changed files with 2749 additions and 678 deletions
|
@ -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; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue