-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable ShadowRealm testing for DOMException
Adds the appropriate metadata for the existing tests for the functionality of DOMException to additionally be tested in a ShadowRealm. Adds the same IDL array to the IDL tests for DOMExceptions in ShadowRealm as for DOMExceptions in other realms.
- Loading branch information
Showing
5 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
webidl/ecmascript-binding/es-exceptions/DOMException-constants.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// META: global=window,dedicatedworker,shadowrealm | ||
|
||
'use strict'; | ||
|
||
test(function() { | ||
|
2 changes: 2 additions & 0 deletions
2
webidl/ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
webidl/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// META: global=window,dedicatedworker,shadowrealm | ||
|
||
'use strict'; | ||
|
||
test(function() { | ||
|
2 changes: 2 additions & 0 deletions
2
webidl/ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// META: global=window,dedicatedworker,shadowrealm | ||
|
||
"use strict"; | ||
|
||
test(() => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
// META: script=/resources/testharness-shadowrealm-outer.js | ||
// META: script=/resources/idlharness-shadowrealm.js | ||
idl_test_shadowrealm(["webidl"], []); | ||
idl_test_shadowrealm( | ||
["webidl"], | ||
[], | ||
idl_array => { | ||
idl_array.add_objects({ | ||
DOMException: ["new DOMException()", | ||
'new DOMException("my message")', | ||
'new DOMException("my message", "myName")'] | ||
}); | ||
} | ||
); |