Sign in
cobalt
/
cobalt
/
08a2e40cad2d5bd01c37c36c1fdffa2d431d01d7
/
.
/
src
/
third_party
/
web_platform_tests
/
url
/
resources
/
testharness-extras.js
blob: c812ca64d19bed926a032684e2ed95f43fc9847f [
file
] [
log
] [
blame
]
/*
Extending the W3C testharness.js with locally useful functionality.
*/
function
assert_type_error
(
f
,
msg
)
{
assert_throws
(
TypeError
(),
f
,
msg
);
}
function
assert_syntax_error
(
f
,
msg
)
{
assert_throws
(
SyntaxError
(),
f
,
msg
);
}