Home
last modified time | relevance | path

Searched refs:assert_throws (Results 1 – 19 of 19) sorted by relevance

/third_party/node/test/fixtures/wpt/html/webappapis/microtask-queuing/
Dqueue-microtask.any.js9 assert_throws(new TypeError(), () => queueMicrotask(), "no argument");
10 assert_throws(new TypeError(), () => queueMicrotask(undefined), "undefined");
11 assert_throws(new TypeError(), () => queueMicrotask(null), "null");
12 assert_throws(new TypeError(), () => queueMicrotask(0), "0");
13assert_throws(new TypeError(), () => queueMicrotask({ handleEvent() { } }), "an event handler obje…
14 assert_throws(new TypeError(), () => queueMicrotask("window.x = 5;"), "a string");
/third_party/node/test/fixtures/wpt/encoding/streams/
Ddecode-attributes.any.js49 assert_throws(new RangeError(), () => new TextDecoderStream(''),
54 assert_throws(new TypeError(), () => new TextDecoderStream({
60 assert_throws(new Error(),
67 assert_throws(new Error(),
/third_party/node/test/fixtures/wpt/encoding/
Dtextdecoder-fatal-streaming.any.js10 assert_throws(new TypeError(), function() {
31 assert_throws(new TypeError(), function() {
36 assert_throws(new TypeError(), function() {
Dtextdecoder-fatal.any.js54 assert_throws(new TypeError(), function() {
74 assert_throws(new TypeError,
DencodeInto.any.js128assert_throws(new TypeError(), () => new TextEncoder().encodeInto("", new view(new ArrayBuffer(0))…
133 assert_throws(new TypeError(), () => new TextEncoder().encodeInto("", new ArrayBuffer(10)));
Dapi-replacement-encodings.any.js10 assert_throws(new RangeError(), function() { new TextDecoder(label); });
Dapi-invalid-label.any.js22 assert_throws(new RangeError(), function() { new TextDecoder(input); });
Dtextdecoder-utf16-surrogates.any.js41 assert_throws(new TypeError(), function() {
Dtextdecoder-fatal-single-byte.any.js40 assert_throws(new TypeError(), function() {
/third_party/node/test/parallel/
Dtest-whatwg-url-constructor.js9 const { test, assert_equals, assert_true, assert_throws } =
50 assert_throws(new TypeError(), function() {
102 assert_throws(TypeError(), function() { url.searchParams = new URLSearchParams(urlString) })
Dtest-whatwg-url-toascii.js9 const { test, assert_equals, assert_throws } = require('../common/wpt').harness;
62 assert_throws(new TypeError, () => makeURL("url", hostTest.input))
/third_party/node/test/fixtures/wpt/url/
Durlsearchparams-constructor.any.js25 assert_throws(new TypeError(), () => new URLSearchParams(DOMException.prototype),
156 assert_throws(new TypeError(), function() { new URLSearchParams([[1]]); });
157 assert_throws(new TypeError(), function() { new URLSearchParams([[1,2,3]]); });
Dhistorical.any.js18 assert_throws(new TypeError(), function() {
Dtoascii.window.js31 assert_throws(new TypeError, () => makeURL("url", hostTest.input))
Durl-searchparams.any.js32 assert_throws(TypeError(), function() { url.searchParams = new URLSearchParams(urlString) })
/third_party/node/test/fixtures/wpt/console/
Dconsole-label-conversion.any.js21 assert_throws({name: 'Error'}, () => {
/third_party/node/test/fixtures/wpt/resources/
Didlharness.js90 assert_throws(new TypeError(), function() {
737 IdlArray.prototype.assert_throws = function(error, idlArrayFunc) method in IdlArray
1567 assert_throws(new TypeError(), function() {
1570 assert_throws(new TypeError(), function() {
1788 assert_throws(new TypeError(), function() {
2033 assert_throws(new TypeError(), function() {
2060 assert_throws(new TypeError(), function() {
2241 assert_throws(new TypeError(), function() {
2525 assert_throws(new TypeError(), function() {
2534 assert_throws(new TypeError(), function() {
[all …]
Dtestharness.js629 assert_throws(expected, function() { throw e }, description);
1342 function assert_throws(code, func, description) function
1466 expose(assert_throws, "assert_throws");
/third_party/node/test/common/
Dwpt.js26 assert_throws: (code, func, desc) => {