mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Update web-platform-tests to revision 592e2ed83ecd717392d37047536250ba74f1bafa
This commit is contained in:
parent
c8b0dc965d
commit
0a3e19aac8
65 changed files with 1906 additions and 106 deletions
|
@ -1247,6 +1247,13 @@ policies and contribution forms [3].
|
|||
}
|
||||
expose(assert_readonly, "assert_readonly");
|
||||
|
||||
/**
|
||||
* Assert an Exception with the expected code is thrown.
|
||||
*
|
||||
* @param {object|number|string} code The expected exception code.
|
||||
* @param {Function} func Function which should throw.
|
||||
* @param {string} description Error description for the case that the error is not thrown.
|
||||
*/
|
||||
function assert_throws(code, func, description)
|
||||
{
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue