Home
last modified time | relevance | path

Searched refs:assert_equals (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/node/test/fixtures/wpt/url/
Durlsearchparams-stringifier.any.js4 assert_equals(params + '', 'a=b+c');
7 assert_equals(params + '', 'a+b=c');
13 assert_equals(params + '', 'a=');
15 assert_equals(params + '', 'a=&a=');
17 assert_equals(params + '', 'a=&a=&=b');
19 assert_equals(params + '', 'a=&a=&=b&=');
21 assert_equals(params + '', 'a=&a=&=b&=&=');
27 assert_equals(params + '', '=b');
29 assert_equals(params + '', '=b&=b');
35 assert_equals(params + '', '=');
[all …]
Durlsearchparams-constructor.any.js3 assert_equals(params + '', '');
5 assert_equals(params + '', '');
7 assert_equals(params + '', 'a=b');
9 assert_equals(params + '', 'a=b');
14 assert_equals(params.toString(), "")
19 assert_equals(params.toString(), "a=b")
24assert_equals(params.toString(), "INDEX_SIZE_ERR=1&DOMSTRING_SIZE_ERR=2&HIERARCHY_REQUEST_ERR=3&WR…
32assert_equals(params.__proto__, URLSearchParams.prototype, 'expected URLSearchParams.prototype as …
37 assert_equals(params + '', "");
65 assert_equals(params.get('a'), 'b');
[all …]
Durl-searchparams.any.js17 assert_equals(searchParams.toString(), 'a=b')
20 assert_equals(url.searchParams.toString(), 'a=b')
21 assert_equals(url.search, '?a=b')
23 assert_equals(url.searchParams.toString(), '')
24 assert_equals(url.search, '')
25 assert_equals(searchParams.toString(), '')
39 assert_equals(url.search, '?a=b&c=d')
40 assert_equals(searchParams.toString(), 'a=b&c=d')
44 assert_equals(url.search, '?e=f&g=h')
45 assert_equals(searchParams.toString(), 'e=f&g=h')
[all …]
Durlsearchparams-append.any.js4 assert_equals(params + '', 'a=b');
6 assert_equals(params + '', 'a=b&a=b');
8 assert_equals(params + '', 'a=b&a=b&a=c');
14 assert_equals(params + '', '=');
16 assert_equals(params + '', '=&=');
22 assert_equals(params + '', 'null=null');
24 assert_equals(params + '', 'null=null&null=null');
34 assert_equals(params.get('first'), '1', 'Search params object has name "first" with value "1"');
35assert_equals(params.get('second'), '2', 'Search params object has name "second" with value "2"');
36 assert_equals(params.get('third'), '', 'Search params object has name "third" with value ""');
[all …]
Durlsearchparams-delete.any.js4 assert_equals(params + '', 'c=d');
7 assert_equals(params + '', 'b=b&c=c');
10 assert_equals(params + '', 'a=a&b=b&c=c');
13 assert_equals(params + '', 'a=a&b=b');
16 assert_equals(params + '', 'a=a&b=b');
23 assert_equals(params.get('first'), '1', 'Search params object has name "first" with value "1"');
36 assert_equals(url.href, 'http://example.com/', 'url.href does not have ?');
37 assert_equals(url.search, '', 'url.search does not have ?');
43 assert_equals(url.href, 'http://example.com/', 'url.href does not have ?');
44 assert_equals(url.search, '', 'url.search does not have ?');
Durlsearchparams-get.any.js3 assert_equals(params.get('a'), 'b');
4 assert_equals(params.get('c'), 'd');
5 assert_equals(params.get('e'), null);
7 assert_equals(params.get('a'), 'b');
9 assert_equals(params.get(''), 'b');
11 assert_equals(params.get('a'), '');
18assert_equals(params.get('first'), 'second', 'Search params object has name "first" with value "se…
19assert_equals(params.get('third'), '', 'Search params object has name "third" with the empty value…
20assert_equals(params.get('fourth'), null, 'Search params object has no "fourth" name and value.');
Dtoascii.window.js25 assert_equals(url.host, hostTest.output)
26 assert_equals(url.hostname, hostTest.output)
27 assert_equals(url.pathname, "/x")
28 assert_equals(url.href, "https://" + hostTest.output + "/x")
34 assert_equals(url.host, "")
35 assert_equals(url.hostname, "")
36 assert_equals(url.pathname, "")
37 assert_equals(url.href, "https://" + hostTest.input + "/x")
46 assert_equals(url[val], hostTest.output)
48 assert_equals(url[val], "x")
Durlsearchparams-set.any.js4 assert_equals(params + '', 'a=B&c=d');
7 assert_equals(params + '', 'a=B&c=d')
9 assert_equals(params + '', 'a=B&c=d&e=f')
15 assert_equals(params.get('a'), '1', 'Search params object has name "a" with value "1"');
18 assert_equals(params.get('a'), '1', 'Search params object has name "a" with value "1"');
21 assert_equals(params.get('a'), '4', 'Search params object has name "a" with value "4"');
/third_party/node/test/parallel/
Dtest-whatwg-url-constructor.js9 const { test, assert_equals, assert_true, assert_throws } =
57 assert_equals(url.href, expected.href, "href")
58 assert_equals(url.protocol, expected.protocol, "protocol")
59 assert_equals(url.username, expected.username, "username")
60 assert_equals(url.password, expected.password, "password")
61 assert_equals(url.host, expected.host, "host")
62 assert_equals(url.hostname, expected.hostname, "hostname")
63 assert_equals(url.port, expected.port, "port")
64 assert_equals(url.pathname, expected.pathname, "pathname")
65 assert_equals(url.search, expected.search, "search")
[all …]
Dtest-whatwg-url-toascii.js9 const { test, assert_equals, assert_throws } = require('../common/wpt').harness;
56 assert_equals(url.host, hostTest.output)
57 assert_equals(url.hostname, hostTest.output)
58 assert_equals(url.pathname, "/x")
59 assert_equals(url.href, "https://" + hostTest.output + "/x")
65 assert_equals(url.host, "")
66 assert_equals(url.hostname, "")
67 assert_equals(url.pathname, "")
68 assert_equals(url.href, "https://" + hostTest.input + "/x")
77 assert_equals(url[val], hostTest.output)
[all …]
/third_party/node/test/fixtures/wpt/url/resources/
Da-element.js26 assert_equals(url.href, expected.input, "failure should set href to input")
30 assert_equals(url.href, expected.href, "href")
31 assert_equals(url.protocol, expected.protocol, "protocol")
32 assert_equals(url.username, expected.username, "username")
33 assert_equals(url.password, expected.password, "password")
34 assert_equals(url.host, expected.host, "host")
35 assert_equals(url.hostname, expected.hostname, "hostname")
36 assert_equals(url.port, expected.port, "port")
37 assert_equals(url.pathname, expected.pathname, "pathname")
38 assert_equals(url.search, expected.search, "search")
[all …]
/third_party/node/test/fixtures/wpt/encoding/
DencodeInto.any.js101 assert_equals(view.byteLength, destinationLength);
102 assert_equals(view.length, destinationLength);
105 assert_equals(result.read, testData.read);
106 assert_equals(result.written, testData.written.length);
109 assert_equals(fullView[i], control[i]);
111 assert_equals(fullView[i], testData.written[i - destinationOffset]);
140 assert_equals(read, 0);
141 assert_equals(written, 0);
144 assert_equals(read, 0);
145 assert_equals(written, 0);
[all …]
Dapi-basics.any.js4 assert_equals((new TextEncoder).encoding, 'utf-8', 'default encoding is utf-8');
5 assert_equals((new TextDecoder).encoding, 'utf-8', 'default encoding is utf-8');
16 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes)), string);
17 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), string);
32 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes)), string);
33 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), string);
Dtextdecoder-labels.any.js12 assert_equals(
15 assert_equals(
19 assert_equals(
22 assert_equals(
25 assert_equals(
Dtextdecoder-fatal-streaming.any.js15 assert_equals(
28 assert_equals(decoder.decode(odd, {stream: true}), '');
29 assert_equals(decoder.decode(odd), '\u0000');
41 assert_equals(decoder.decode(even, {stream: true}), '\u0000');
42 assert_equals(decoder.decode(even), '\u0000');
/third_party/node/test/fixtures/wpt/FileAPI/url/
Durl-format.any.js20 assert_equals(typeof url, 'string');
26 assert_equals(typeof url, 'string');
32 assert_equals(new URL(url).origin, location.origin);
42 assert_equals(url_record.protocol, 'blob:');
43 assert_equals(url_record.origin, location.origin);
44 assert_equals(url_record.host, '', 'host should be an empty string');
45 assert_equals(url_record.port, '', 'port should be an empty string');
50 assert_equals(nested_url.origin, location.origin);
51 assert_equals(nested_url.pathname.search(uuid_path_re), 0, 'Path must be a valid UUID');
59 assert_equals(new URL(url).origin, location.origin);
/third_party/node/test/fixtures/wpt/encoding/streams/
Drealms.window.js144 assert_equals(obj.constructor, constructorRealm[classname],
161 assert_equals(readable.constructor, constructorRealm.ReadableStream,
163 assert_equals(writable.constructor, constructorRealm.WritableStream,
175 assert_equals(result.constructor, constructorRealm.Object,
177 assert_equals(result.value.constructor, constructorRealm.Uint8Array,
188 assert_equals(result.constructor, constructorRealm.Object,
190 assert_equals(result.value.constructor, constructorRealm.Uint8Array,
212 assert_equals(err.constructor, constructorRealm.TypeError,
222 assert_equals(err.constructor, constructorRealm.TypeError,
237 assert_equals(result.constructor, constructorRealm.Object,
[all …]
/third_party/node/test/fixtures/wpt/FileAPI/
DFileReaderSync.worker.js16 assert_equals(text, "test");
21 assert_equals(text, "");
26 assert_equals(data.indexOf("data:"), 0);
31 assert_equals(data.indexOf("data:"), 0);
36 assert_equals(data, "test");
41 assert_equals(data, "");
47 assert_equals(data.byteLength, "test".length);
53 assert_equals(data.byteLength, 0);
/third_party/node/test/fixtures/wpt/resources/
Didlharness.js1016 assert_equals(value, undefined);
1020 assert_equals(typeof value, "boolean");
1024 assert_equals(typeof value, "number");
1025 assert_equals(value, Math.floor(value), "should be an integer");
1030 assert_equals(typeof value, "number");
1031 assert_equals(value, Math.floor(value), "should be an integer");
1036 assert_equals(typeof value, "number");
1037 assert_equals(value, Math.floor(value), "should be an integer");
1042 assert_equals(typeof value, "number");
1043 assert_equals(value, Math.floor(value), "should be an integer");
[all …]
Dcheck-layout-th.js24 assert_equals(actual, Number(expected), message);
94 assert_equals(actualDisplay, expectedDisplay, prefix + "display");
102 assert_equals(actualPaddingTop, expectedPaddingTop, prefix + "padding-top");
110 assert_equals(actualPaddingBottom, expectedPaddingBottom, prefix + "padding-bottom");
118 assert_equals(actualPaddingLeft, expectedPaddingLeft, prefix + "padding-left");
126 assert_equals(actualPaddingRight, expectedPaddingRight, prefix + "padding-right");
134 assert_equals(actualMarginTop, expectedMarginTop, prefix + "margin-top");
142 assert_equals(actualMarginBottom, expectedMarginBottom, prefix + "margin-bottom");
150 assert_equals(actualMarginLeft, expectedMarginLeft, prefix + "margin-left");
158 assert_equals(actualMarginRight, expectedMarginRight, prefix + "margin-right");
/third_party/node/test/fixtures/wpt/FileAPI/blob/
DBlob-text.any.js8 assert_equals(text, "PASS");
14 assert_equals(text, "");
20 assert_equals(text, "PASS");
28 assert_equals(text, non_unicode);
34 assert_equals(text, "PASS");
42 assert_equals(text, non_unicode);
50 assert_equals(text, "\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd" +
61 assert_equals(text, "\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd" +
DBlob-constructor.any.js7 assert_equals(Blob.length, 0, "Blob.length should be 0.");
15 assert_equals(String(blob), '[object Blob]');
16 assert_equals(blob.size, 0);
17 assert_equals(blob.type, "");
25 assert_equals(blob.size, 0);
26 assert_equals(blob.type, "");
31 assert_equals(String(blob), '[object Blob]');
32 assert_equals(blob.size, 0);
33 assert_equals(blob.type, "");
79 assert_equals(blob.size, 5, 'Custom @@iterator should be treated as a sequence');
[all …]
/third_party/node/test/fixtures/wpt/dom/abort/
Devent.any.js10 assert_equals(state, "begin");
16 assert_equals(state, "aborted");
25 assert_equals(controller.signal, signal,
28 assert_equals(controller.signal, signal,
41 assert_equals(eventCount, 1, "event handler should have been called once");
44 assert_equals(eventCount, 1,
59 assert_equals(e.type, "abort", "event type should be abort");
60 assert_equals(e.target, signal, "event target should be signal");
/third_party/node/test/fixtures/wpt/console/
Dconsole-is-a-namespace.any.js11 assert_equals(propDesc.writable, true, "must be writable");
12 assert_equals(propDesc.enumerable, false, "must not be enumerable");
13 assert_equals(propDesc.configurable, true, "must be configurable");
14 assert_equals(propDesc.value, console, "must have the right value");
25assert_equals(Object.getOwnPropertyNames(prototype1).length, 0, "The [[Prototype]] must have no pr…
26assert_equals(prototype2, Object.prototype, "The [[Prototype]]'s [[Prototype]] must be %ObjectProt…
/third_party/node/test/fixtures/wpt/FileAPI/support/
DBlob.js13 assert_equals(blob.type, type);
14 assert_equals(blob.size, expected.length);
18 assert_equals(this.result, expected);
37 assert_equals(blob.type, type);
38 assert_equals(blob.size, expected.length);
61 assert_equals(view1.byteLength, view2.byteLength,
67 assert_equals(view1.getUint8(i), view2.getUint8(i),

1234