mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b8669365b81965f5400d6b13a7783415b44e679d
This commit is contained in:
parent
6fa1853bb1
commit
bde105ca2e
42 changed files with 933 additions and 241 deletions
23
tests/wpt/web-platform-tests/user-timing/mark-errors.html
Normal file
23
tests/wpt/web-platform-tests/user-timing/mark-errors.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=utf-8>
|
||||
<title>UserTimingL3: errors are thrown when mark() is called incorrectly.</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<h1>UserTimingL3: Mark</h1>
|
||||
<script>
|
||||
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.")
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue