mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 9919d0f04266001686c09d47ff6e25c98b48d91f
This commit is contained in:
parent
026e550d35
commit
e7fcc8e274
453 changed files with 7751 additions and 2288 deletions
15
tests/wpt/web-platform-tests/user-timing/mark-errors.any.js
Normal file
15
tests/wpt/web-platform-tests/user-timing/mark-errors.any.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
test(function() {
|
||||
assert_throws(new TypeError(), function() { self.performance.mark("mark1", 123); }, "Number passed as a dict argument should cause type-error.")
|
||||
}, "Number should be rejected as the mark-options.")
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() { self.performance.mark("mark1", NaN); }, "NaN passed as a dict argument should cause type-error.")
|
||||
}, "NaN should be rejected as the mark-options.")
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() { self.performance.mark("mark1", Infinity); }, "Infinity passed as a dict argument should cause type-error.")
|
||||
}, "Infinity should be rejected as the mark-options.")
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() { self.performance.mark("mark1", "string"); }, "String passed as a dict argument should cause type-error.")
|
||||
}, "String should be rejected as the mark-options.")
|
Loading…
Add table
Add a link
Reference in a new issue