Home
last modified time | relevance | path

Searched full:should (Results 1 – 25 of 15511) sorted by relevance

12345678910>>...621

/third_party/curl/tests/data/
Dtest106125 And you should ignore this data. aaaaaaaaaaaaaaaa
26 And you should ignore this data. aaaaaaaaaaaaaaaa
27 And you should ignore this data. aaaaaaaaaaaaaaaa
28 And you should ignore this data. aaaaaaaaaaaaaaaa
29 And you should ignore this data. aaaaaaaaaaaaaaaa
30 And you should ignore this data. aaaaaaaaaaaaaaaa
31 And you should ignore this data. aaaaaaaaaaaaaaaa
32 And you should ignore this data. aaaaaaaaaaaaaaaa
33 And you should ignore this data. aaaaaaaaaaaaaaaa
34 And you should ignore this data. aaaaaaaaaaaaaaaa
[all …]
Dtest106023 And you should ignore this data. aaaaaaaaaaaaaaaa
24 And you should ignore this data. aaaaaaaaaaaaaaaa
25 And you should ignore this data. aaaaaaaaaaaaaaaa
26 And you should ignore this data. aaaaaaaaaaaaaaaa
27 And you should ignore this data. aaaaaaaaaaaaaaaa
28 And you should ignore this data. aaaaaaaaaaaaaaaa
29 And you should ignore this data. aaaaaaaaaaaaaaaa
30 And you should ignore this data. aaaaaaaaaaaaaaaa
31 And you should ignore this data. aaaaaaaaaaaaaaaa
32 And you should ignore this data. aaaaaaaaaaaaaaaa
[all …]
/third_party/typescript/tests/baselines/reference/
DarrayAssignmentTest1.js27 * Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClas…
47 var i1_error: I1 = []; // should be an error - is
48 var c1_error: C1 = []; // should be an error - is
49 var c2_error: C2 = []; // should be an error - is
50 var c3_error: C3 = []; // should be an error - is
53 arr_any = arr_i1; // should be ok - is
54 arr_any = arr_c1; // should be ok - is
55 arr_any = arr_c2; // should be ok - is
56 arr_any = arr_c3; // should be ok - is
58 arr_i1 = arr_i1; // should be ok - subtype relationship - is
[all …]
DnoUncheckedIndexedAccessDestructuring.js9 s1.toString(); // Should error, s1 possibly undefined
13 s2.push(undefined); // Should error, 'undefined' not part of s2's element type
17 s3.push(undefined); // Should error, 'undefined' not part of s2's element type
24 t1.toString(); // Should error, t1 possibly undefined
27 t2.z.toString(); // Should error
33 x.toFixed(); // Should OK
34 y.toFixed(); // Should OK
35 z.toFixed(); // Should error
40 x.toFixed(); // Should OK
41 q.y.toFixed(); // Should OK
[all …]
DimplicitAnyCastedValue.js3 return <any>0; // this should not be an error
7 return <any>"hello world"; // this should not be an error
11 bar = null; // this should be an error
12 foo = undefined; // this should be an error
14 return <any>0; // this should not be an error
17 public returnBarWithCase() { // this should not be an error
22 return <any>this.foo; // this should not be an error
27 getValue = null; // this should be an error
30 return <any>this.getValue; // this should not be an error
34 return this.getValue; // this should not be an error
[all …]
DcatchClauseWithTypeAnnotation.js8 try { } catch (x) { } // should be OK
9 try { } catch (x: any) { } // should be OK
10 try { } catch (x: any1) { } // should be OK
11 try { } catch (x: unknown) { } // should be OK
12 try { } catch (x: unknown1) { } // should be OK
13 try { } catch (x) { x.foo; } // should be OK
14 try { } catch (x: any) { x.foo; } // should be OK
15 try { } catch (x: any1) { x.foo; } // should be OK
16 try { } catch (x: unknown) { console.log(x); } // should be OK
17 try { } catch (x: unknown1) { console.log(x); } // should be OK
[all …]
DjsdocCatchClauseWithTypeAnnotation.js11 try { } catch (x) { } // should be OK
12 try { } catch (/** @type {any} */ err) { } // should be OK
13 try { } catch (/** @type {Any} */ err) { } // should be OK
14 try { } catch (/** @type {unknown} */ err) { } // should be OK
15 try { } catch (/** @type {Unknown} */ err) { } // should be OK
16 try { } catch (err) { err.foo; } // should be OK
17 try { } catch (/** @type {any} */ err) { err.foo; } // should be OK
18 try { } catch (/** @type {Any} */ err) { err.foo; } // should be OK
19 try { } catch (/** @type {unknown} */ err) { console.log(err); } // should be OK
20 try { } catch (/** @type {Unknown} */ err) { console.log(err); } // should be OK
[all …]
DlambdaParamTypes.js11 // Below should all be OK
12 thing.doSomething((x, y) => x.name.charAt(0)); // x.name should be string, so should be OK
13 thing.doSomething((x, y) => x.id.toExponential(0)); // x.id should be string, so should be OK
14 thing.doSomething((x, y) => y.name.charAt(0)); // x.name should be string, so should be OK
15 thing.doSomething((x, y) => y.id.toExponential(0)); // x.id should be string, so should be OK
17 // Below should all be in error
20 thing.doSomething((x, y) => x.id.charAt(0)); // x.id should be number, no charAt member
21 thing.doSomething((x, y) => x.name.toExponential(0)); // x.name should be string, no toExponential …
28 // Below should all be OK
29 …omething(function (x, y) { return x.name.charAt(0); }); // x.name should be string, so should be OK
[all …]
DnoImplicitAnyIndexing.js6 // Should be okay; should be a string.
9 // Should be okay; should be a string.
12 // Should be implicit 'any' ; property access fails, no string indexer.
15 // Should be okay; should be a MyEmusEnum
19 // Should report an implicit 'any'.
22 // Should report an implicit 'any'.
30 // Should report an implicit 'any'.
56 // Should be okay; should be a string.
58 // Should be okay; should be a string.
60 // Should be implicit 'any' ; property access fails, no string indexer.
[all …]
/third_party/node/test/fixtures/wpt/streams/readable-streams/
Dgeneral.any.js23 …assert_throws_js(TypeError, () => new ReadableStream(null), 'constructor should throw when the sou…
30 'constructor should throw when the type is null');
32 'constructor should throw when the type is empty string');
34 'constructor should throw when the type is asdf');
38 'constructor should throw when ToString() throws'
43 'constructor should throw when ToString() throws'
52 }, 'constructor should throw when start is not a function');
54 }, 'ReadableStream constructor should throw for non-function start arguments');
58 …assert_throws_js(TypeError, () => new ReadableStream({ cancel: '2' }), 'constructor should throw');
64 assert_throws_js(TypeError, () => new ReadableStream({ pull: { } }), 'constructor should throw');
[all …]
/third_party/node/test/fixtures/wpt/streams/resources/
Drs-test-templates.js4 // For readable stream tests, the factory should return the stream. For reader tests, the factory s…
26 assert_throws_js(TypeError, () => rs.getReader({ mode: '' }), 'empty string mode should throw');
27 assert_throws_js(TypeError, () => rs.getReader({ mode: null }), 'null mode should throw');
28 assert_throws_js(TypeError, () => rs.getReader({ mode: 'asdf' }), 'asdf mode should throw');
29 assert_throws_js(TypeError, () => rs.getReader(5), '5 should throw');
31 // Should not throw
34 }, label + ': calling getReader with invalid arguments should throw appropriate errors');
46 …assert_not_equals(cancelPromise1, cancelPromise2, 'cancel() calls should return distinct promises'…
49 …cancelPromise1.then(v => assert_equals(v, undefined, 'first cancel() call should fulfill with unde…
50 …cancelPromise2.then(v => assert_equals(v, undefined, 'second cancel() call should fulfill with und…
[all …]
/third_party/typescript/tests/issues_cookbook_tests/pages/cases/
D#16334.ets12 array1[0]; // should NOT report
13 arrayInt8[0]; // should NOT report
14 arrayUint8[0]; // should NOT report
15 arrayInt16[0]; // should NOT report
16 arrayUint16[0]; // should NOT report
17 arrayInt32[0]; // should NOT report
18 arrayUint32[0]; // should NOT report
20 array1[num]; // should NOT report
21 arrayInt8[num]; // should NOT report
22 arrayUint8[num]; // should NOT report
[all …]
/third_party/typescript/tests/cases/compiler/
DarrayAssignmentTest1.ts26 * Type 2 of the following doesn't throw an error but should: {one: 1}, new() => SomeClass, SomeClas…
46 var i1_error: I1 = []; // should be an error - is
47 var c1_error: C1 = []; // should be an error - is
48 var c2_error: C2 = []; // should be an error - is
49 var c3_error: C3 = []; // should be an error - is
52 arr_any = arr_i1; // should be ok - is
53 arr_any = arr_c1; // should be ok - is
54 arr_any = arr_c2; // should be ok - is
55 arr_any = arr_c3; // should be ok - is
57 arr_i1 = arr_i1; // should be ok - subtype relationship - is
[all …]
/third_party/node/test/fixtures/wpt/streams/transform-streams/
Derrors.any.js21 'writable\'s write should reject with the thrown error'),
23 'readable\'s read should reject with the thrown error'),
25 'readable\'s closed should be rejected with the thrown error'),
27 'writable\'s closed should be rejected with the thrown error')
47 'writable\'s close should reject with the thrown error'),
49 'readable\'s read should reject with the thrown error'),
51 'readable\'s closed should be rejected with the thrown error'),
53 'writable\'s closed should be rejected with the thrown error')
62 assert_throws_js(TypeError, () => c.enqueue('b'), 'enqueue() should throw');
65 }, 'errored TransformStream should not enqueue new chunks');
[all …]
Dstrategies.any.js12 assert_equals(ts.writable.getWriter().desiredSize, 17, 'desiredSize should be 17');
13 }, 'writableStrategy highWaterMark should work');
25 'transform() should have been called 9 times');
27 }, 'readableStrategy highWaterMark should work');
38 assert_true(writableSizeCalled, 'writableStrategy.size() should have been called');
39 assert_false(readableSizeCalled, 'readableStrategy.size() should not have been called');
41 assert_true(readableSizeCalled, 'readableStrategy.size() should have been called');
59 assert_true(transformCalled, 'transform() should be called');
61 }, 'writable should have the correct size() function');
69 }, 'default writable strategy should be equivalent to { highWaterMark: 1 }');
[all …]
/third_party/curl/tests/unit/
Dunit1302.c11 * you should have received as part of this distribution. The terms
61 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
62 fail_unless(size == 4, "size should be 4");
67 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
68 fail_unless(size == 4, "size should be 4");
73 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
74 fail_unless(size == 4, "size should be 4");
79 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
80 fail_unless(size == 8, "size should be 8");
85 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
[all …]
/third_party/ffmpeg/tests/ref/fate/
Dsub-webvttenc9 This text should be blue
10 This text should be red
11 This text should be black
18 This text should be small
19 This text should be normal
20 This text should be big
23 This should be an E with an accent: È
25 <b><i><u>This text should be bold, italics and underline</u></i></b>
26 This text should be small and green
27 This text should be small and red
[all …]
Dsub-textenc9 This text should be blue
10 This text should be red
11 This text should be black
20 This text should be small
21 This text should be normal
22 This text should be big
26 This should be an E with an accent: È
28 This text should be bold, italics and underline
29 This text should be small and green
30 This text should be small and red
[all …]
/third_party/node/test/fixtures/wpt/streams/transferable/
Dreadable-stream.html21 assert_false(done, 'should not be done yet');
22 assert_equals(value, 'a', 'first chunk should be a');
26 assert_true(done, 'should be done now');
28 }, 'sending one chunk through a transferred stream should work');
44 assert_false(done, 'should not be done yet');
45 assert_equals(value, i, 'chunk content should match index');
48 assert_true(done, 'should be done now');
49 }, 'sending ten chunks through a transferred stream should work');
62 assert_false(done, 'should not be done yet');
63 assert_equals(value, i, 'chunk content should match index');
[all …]
Dreason.html31 assert_equals(reason, value, 'reason should match');
32 }, `reason with a simple value of '${value}' should be preserved`);
39 'cancel() should reject');
40 }, `reason with a type of '${typeof badType}' should be rejected and ` +
49 'object should be preserved');
50 }, 'objects that can be completely expressed in JSON should be preserved');
56 assert_true(reason instanceof Object, 'an Object should be output');
58 'the object should have a circular reference');
59 }, 'objects that cannot be expressed in JSON should also be preserved');
65 'type should be preserved');
[all …]
/third_party/node/test/wpt/status/FileAPI/
Dblob.json9 … "A plain object with @@iterator should be treated as a sequence for the blobParts argument.",
10 …"A plain object with @@iterator and a length property should be treated as a sequence for the blob…
11 "A String object should be treated as a sequence for the blobParts argument.",
12 "A Uint8Array object should be treated as a sequence for the blobParts argument.",
13 "Getters and value conversions should happen in order until an exception is thrown.",
14 "Changes to the blobParts array should be reflected in the returned Blob (pop).",
15 "Changes to the blobParts array should be reflected in the returned Blob (unshift).",
16 "ToString should be called on elements of the blobParts array.",
17 "ArrayBuffer elements of the blobParts array should be supported.",
18 "Passing typed arrays as elements of the blobParts array should work.",
[all …]
/third_party/node/test/fixtures/wpt/streams/writable-streams/
Dwrite.any.js37 ….then(() => assert_array_equals(storage, input, 'correct data should be relayed to underlying sink…
38 }, 'WritableStream should complete asynchronous writes before close resolves');
48 'correct data should be relayed to underlying sink'));
49 }, 'WritableStream should complete synchronous writes before close resolves');
63 }, 'fulfillment value of ws.write() call should be undefined even if the underlying sink returns a …
78 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
83 …assert_not_equals(resolveSinkWritePromise, undefined, 'resolveSinkWritePromise should not be undef…
85 assert_equals(writer.desiredSize, 0, 'desiredSize should be 0 after writer.write()');
90 …assert_equals(resolveSinkWritePromise, undefined, 'sinkWritePromise should be fulfilled before wri…
92 assert_equals(value, undefined, 'writePromise should be fulfilled with undefined');
[all …]
Dconstructor.any.js23 assert_equals(writer.desiredSize, null, 'desiredSize should be null');
25 assert_equals(r, error1, 'ws should be errored by the passed error');
27 }, 'controller argument should be passed to start method');
40 …promise_rejects_exactly(t, error1, writer.closed, 'controller.error() in write() should error the …
42 }, 'controller argument should be passed to write method');
50 assert_array_equals(args, [], 'no arguments should be passed to close');
56 }, 'controller argument should not be passed to close method');
66 assert_equals(writer.desiredSize, 1000, 'desiredSize should be 1000');
68 assert_equals(v, undefined, 'ready promise should fulfill with undefined');
70 }, 'highWaterMark should be reflected to desiredSize');
[all …]
/third_party/node/test/fixtures/wpt/streams/piping/
Dabort.any.js28 … promise_rejects_js(t, TypeError, rs.pipeTo(ws, { signal: invalidSignal }), 'pipeTo should reject')
30 assert_equals(rs.events.length, 0, 'no ReadableStream methods should have been called');
31 assert_equals(ws.events.length, 0, 'no WritableStream methods should have been called');
33 }, `a signal argument '${invalidSignal}' should cause pipeTo() to reject`);
42 return promise_rejects_dom(t, 'AbortError', rs.pipeTo(ws, { signal }), 'pipeTo should reject')
45 promise_rejects_dom(t, 'AbortError', ws.getWriter().closed, 'writer.closed should reject')
48 assert_equals(rs.events.length, 2, 'cancel should have been called');
49 assert_equals(rs.events[0], 'cancel', 'first event should be cancel');
50 … assert_equals(rs.events[1].name, 'AbortError', 'the argument to cancel should be an AbortError');
52 'the argument to cancel should be a DOMException');
[all …]
Dpipe-through.any.js39 assert_array_equals(chunks, [1, 2, 3, 4, 5]), 'chunks should match');
40 }, 'Piping through a duck-typed pass-through transform stream should work');
46 c.error(new Error('this rejection should not be reported as unhandled'));
54 // The test harness should complain about unhandled rejections by then.
76 assert_false(calledPipeTo, 'the overridden pipeTo should not have been called');
77 assert_equals(result, readable, 'return value should be the passed readable property');
78 }, 'pipeThrough should not call pipeTo on this');
94 assert_false(calledFakePipeTo, 'the monkey-patched pipeTo should not have been called');
95 assert_equals(result, readable, 'return value should be the passed readable property');
97 }, 'pipeThrough should not call pipeTo on the ReadableStream prototype');
[all …]

12345678910>>...621