Skip to content

Commit

Permalink
Bug 1686645 [wpt PR 27181] - [DOMException] add test cases of error n…
Browse files Browse the repository at this point in the history
…ames table, a=testonly

Automatic update from web-platform-tests
DOMException: test code mapping for all error names

In particular, this tests the deprecated ones, some removed ones, and some newer error names which intentionally don't have legacy error codes. See also whatwg/webidl#946.

Closes #27151.
--

wpt-commits: 93c6faceda56025f1c96c0155990bf1d231dac9c
wpt-pr: 27181

UltraBlame original commit: 84dd97dc22528263ce280a59cb531b3ab2fed488
  • Loading branch information
marco-c committed Jan 25, 2021
1 parent 5d8c863 commit 56c95a8
Showing 1 changed file with 184 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,16 @@ code
name
:
"
TypeMismatchError
"
code
:
17
}
{
name
:
"
SecurityError
"
code
Expand Down Expand Up @@ -1072,6 +1082,180 @@ code
:
25
}
/
/
These
were
removed
from
the
error
names
table
.
/
/
See
https
:
/
/
github
.
com
/
heycam
/
webidl
/
pull
/
946
.
{
name
:
"
DOMStringSizeError
"
code
:
0
}
{
name
:
"
NoDataAllowedError
"
code
:
0
}
{
name
:
"
ValidationError
"
code
:
0
}
/
/
The
error
names
which
don
'
t
have
legacy
code
values
.
{
name
:
"
EncodingError
"
code
:
0
}
{
name
:
"
NotReadableError
"
code
:
0
}
{
name
:
"
UnknownError
"
code
:
0
}
{
name
:
"
ConstraintError
"
code
:
0
}
{
name
:
"
DataError
"
code
:
0
}
{
name
:
"
TransactionInactiveError
"
code
:
0
}
{
name
:
"
ReadOnlyError
"
code
:
0
}
{
name
:
"
VersionError
"
code
:
0
}
{
name
:
"
OperationError
"
code
:
0
}
{
name
:
"
NotAllowedError
"
code
:
0
}
]
.
forEach
Expand Down

0 comments on commit 56c95a8

Please sign in to comment.