mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
15 lines
883 B
JavaScript
15 lines
883 B
JavaScript
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.")
|