diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/encoding/csv_test.ts | 40 | ||||
-rw-r--r-- | std/examples/chat/server_test.ts | 6 | ||||
-rw-r--r-- | std/examples/tests/curl_test.ts | 2 | ||||
-rw-r--r-- | std/fs/walk_test.ts | 4 | ||||
-rw-r--r-- | std/http/server_test.ts | 6 | ||||
-rw-r--r-- | std/node/_fs/_fs_chmod_test.ts | 4 | ||||
-rw-r--r-- | std/node/_fs/_fs_chown_test.ts | 6 | ||||
-rw-r--r-- | std/node/_fs/_fs_readlink_test.ts | 8 | ||||
-rw-r--r-- | std/textproto/reader_test.ts | 2 |
9 files changed, 39 insertions, 39 deletions
diff --git a/std/encoding/csv_test.ts b/std/encoding/csv_test.ts index 2862d57e3..74ad00c72 100644 --- a/std/encoding/csv_test.ts +++ b/std/encoding/csv_test.ts @@ -43,7 +43,7 @@ zzz,yyy,xxx`, ["a,a", `bbb`, "ccc"], ["zzz", "yyy", "xxx"] ], - skip: true + ignore: true }, { Name: "NoEOLTest", @@ -63,7 +63,7 @@ line","one line","three line field"`, Output: [["two\nline"], ["one line"], ["three\nline\nfield"]], - skip: true + ignore: true }, { Name: "BlankLine", @@ -263,20 +263,20 @@ x,,, Input: 'a,"b\nc"d,e', Error: true, // Error: &ParseError{StartLine: 1, Line: 2, Column: 1, Err: ErrQuote}, - skip: true + ignore: true }, { Name: "StartLine2", Input: 'a,b\n"d\n\n,e', Error: true, // Error: &ParseError{StartLine: 2, Line: 5, Column: 0, Err: ErrQuote}, - skip: true + ignore: true }, { Name: "CRLFInQuotedField", // Issue 21201 Input: 'A,"Hello\r\nHi",B\r\n', Output: [["A", "Hello\nHi", "B"]], - skip: true + ignore: true }, { Name: "BinaryBlobField", // Issue 19410 @@ -287,32 +287,32 @@ x,,, Name: "TrailingCR", Input: "field1,field2\r", Output: [["field1", "field2"]], - skip: true + ignore: true }, { Name: "QuotedTrailingCR", Input: '"field"\r', Output: [['"field"']], - skip: true + ignore: true }, { Name: "QuotedTrailingCRCR", Input: '"field"\r\r', Error: true, // Error: &ParseError{StartLine: 1, Line: 1, Column: 6, Err: ErrQuote}, - skip: true + ignore: true }, { Name: "FieldCR", Input: "field\rfield\r", Output: [["field\rfield"]], - skip: true + ignore: true }, { Name: "FieldCRCR", Input: "field\r\rfield\r\r", Output: [["field\r\rfield\r"]], - skip: true + ignore: true }, { Name: "FieldCRCRLF", @@ -328,7 +328,7 @@ x,,, Name: "FieldCRCRLFCRCR", Input: "field\r\r\n\r\rfield\r\r\n\r\r", Output: [["field\r"], ["\r\rfield\r"], ["\r"]], - skip: true + ignore: true }, { Name: "MultiFieldCRCRLFCRCR", @@ -338,7 +338,7 @@ x,,, ["\r\rfield1", "field2\r"], ["\r\r", ""] ], - skip: true + ignore: true }, { Name: "NonASCIICommaAndComment", @@ -374,12 +374,12 @@ x,,, Name: "QuotedFieldMultipleLF", Input: '"\n\n\n\n"', Output: [["\n\n\n\n"]], - skip: true + ignore: true }, { Name: "MultipleCRLF", Input: "\r\n\r\n\r\n\r\n", - skip: true + ignore: true }, /** * The implementation may read each line in several chunks if @@ -392,7 +392,7 @@ x,,, "#ignore\n".repeat(10000) + "@".repeat(5000) + "," + "*".repeat(5000), Output: [["@".repeat(5000), "*".repeat(5000)]], Comment: "#", - skip: true + ignore: true }, { Name: "QuoteWithTrailingCRLF", @@ -410,27 +410,27 @@ x,,, Name: "DoubleQuoteWithTrailingCRLF", Input: '"foo""bar"\r\n', Output: [[`foo"bar`]], - skip: true + ignore: true }, { Name: "EvenQuotes", Input: `""""""""`, Output: [[`"""`]], - skip: true + ignore: true }, { Name: "OddQuotes", Input: `"""""""`, Error: true, // Error:" &ParseError{StartLine: 1, Line: 1, Column: 7, Err: ErrQuote}", - skip: true + ignore: true }, { Name: "LazyOddQuotes", Input: `"""""""`, Output: [[`"""`]], LazyQuotes: true, - skip: true + ignore: true }, { Name: "BadComma1", @@ -466,7 +466,7 @@ x,,, ]; for (const t of testCases) { Deno.test({ - skip: !!t.skip, + ignore: !!t.ignore, name: `[CSV] ${t.Name}`, async fn(): Promise<void> { let comma = ","; diff --git a/std/examples/chat/server_test.ts b/std/examples/chat/server_test.ts index 8004055a4..899eb1b32 100644 --- a/std/examples/chat/server_test.ts +++ b/std/examples/chat/server_test.ts @@ -27,10 +27,10 @@ async function startServer(): Promise<Deno.Process> { } // TODO: https://github.com/denoland/deno/issues/4108 -const skip = build.os == "win"; +const ignore = build.os == "win"; test({ - skip, + ignore, name: "GET / should serve html", async fn() { const server = await startServer(); @@ -49,7 +49,7 @@ test({ }); test({ - skip, + ignore, name: "GET /ws should upgrade conn to ws", async fn() { const server = await startServer(); diff --git a/std/examples/tests/curl_test.ts b/std/examples/tests/curl_test.ts index 593e5b8f7..bc413b23f 100644 --- a/std/examples/tests/curl_test.ts +++ b/std/examples/tests/curl_test.ts @@ -6,7 +6,7 @@ Deno.test({ name: "[examples/curl] send a request to a specified url", // FIXME(bartlomieju): this test is leaking both resources and ops, // and causes interference with other tests - skip: true, + ignore: true, fn: async () => { const server = serve({ port: 8081 }); (async (): Promise<void> => { diff --git a/std/fs/walk_test.ts b/std/fs/walk_test.ts index 07f846b49..c2518cee3 100644 --- a/std/fs/walk_test.ts +++ b/std/fs/walk_test.ts @@ -8,7 +8,7 @@ const isWindows = Deno.build.os == "win"; export async function testWalk( setup: (arg0: string) => void | Promise<void>, t: Deno.TestFunction, - skip = false + ignore = false ): Promise<void> { const name = t.name; async function fn(): Promise<void> { @@ -23,7 +23,7 @@ export async function testWalk( await remove(d, { recursive: true }); } } - Deno.test({ skip, name: `[walk] ${name}`, fn }); + Deno.test({ ignore, name: `[walk] ${name}`, fn }); } function normalize({ filename }: WalkInfo): string { diff --git a/std/http/server_test.ts b/std/http/server_test.ts index 79d4417db..b4d86c468 100644 --- a/std/http/server_test.ts +++ b/std/http/server_test.ts @@ -346,7 +346,7 @@ test(async function requestBodyReaderWithTransferEncoding(): Promise<void> { test({ name: "destroyed connection", // FIXME(bartlomieju): hangs on windows, cause can't do `Deno.kill` - skip: true, + ignore: true, fn: async (): Promise<void> => { // Runs a simple server as another process const p = Deno.run({ @@ -387,7 +387,7 @@ test({ test({ name: "serveTLS", // FIXME(bartlomieju): hangs on windows, cause can't do `Deno.kill` - skip: true, + ignore: true, fn: async (): Promise<void> => { // Runs a simple server as another process const p = Deno.run({ @@ -459,7 +459,7 @@ test("close server while iterating", async (): Promise<void> => { // We need to find a way to similarly trigger an error on Windows so that // we can test if connection is closed. test({ - skip: Deno.build.os == "win", + ignore: Deno.build.os == "win", name: "respond error handling", async fn(): Promise<void> { const connClosedPromise = deferred(); diff --git a/std/node/_fs/_fs_chmod_test.ts b/std/node/_fs/_fs_chmod_test.ts index de8d1cce8..8d420b3be 100644 --- a/std/node/_fs/_fs_chmod_test.ts +++ b/std/node/_fs/_fs_chmod_test.ts @@ -5,7 +5,7 @@ import { chmod, chmodSync } from "./_fs_chmod.ts"; test({ name: "ASYNC: Permissions are changed (non-Windows)", - skip: Deno.build.os === "win", + ignore: Deno.build.os === "win", async fn() { const tempFile: string = await Deno.makeTempFile(); const originalFileMode: number | null = (await Deno.lstat(tempFile)).mode; @@ -31,7 +31,7 @@ test({ test({ name: "SYNC: Permissions are changed (non-Windows)", - skip: Deno.build.os === "win", + ignore: Deno.build.os === "win", fn() { const tempFile: string = Deno.makeTempFileSync(); const originalFileMode: number | null = Deno.lstatSync(tempFile).mode; diff --git a/std/node/_fs/_fs_chown_test.ts b/std/node/_fs/_fs_chown_test.ts index f7b4a8cec..bdf2ae09a 100644 --- a/std/node/_fs/_fs_chown_test.ts +++ b/std/node/_fs/_fs_chown_test.ts @@ -4,10 +4,10 @@ import { fail, assertEquals } from "../../testing/asserts.ts"; import { chown, chownSync } from "./_fs_chown.ts"; //chown is difficult to test. Best we can do is set the existing user id/group id again -const skip = Deno.build.os == "win"; +const ignore = Deno.build.os == "win"; test({ - skip, + ignore, name: "ASYNC: setting existing uid/gid works as expected (non-Windows)", async fn() { const tempFile: string = await Deno.makeTempFile(); @@ -35,7 +35,7 @@ test({ }); test({ - skip, + ignore, name: "SYNC: setting existing uid/gid works as expected (non-Windows)", fn() { const tempFile: string = Deno.makeTempFileSync(); diff --git a/std/node/_fs/_fs_readlink_test.ts b/std/node/_fs/_fs_readlink_test.ts index 202b9e227..653d1a598 100644 --- a/std/node/_fs/_fs_readlink_test.ts +++ b/std/node/_fs/_fs_readlink_test.ts @@ -12,7 +12,7 @@ if (Deno.build.os !== "win") { test({ name: "readlinkSuccess", - skip: Deno.build.os === "win", + ignore: Deno.build.os === "win", async fn() { const data = await new Promise((res, rej) => { readlink(newname, (err, data) => { @@ -30,7 +30,7 @@ test({ test({ name: "readlinkEncodeBufferSuccess", - skip: Deno.build.os === "win", + ignore: Deno.build.os === "win", async fn() { const data = await new Promise((res, rej) => { readlink(newname, { encoding: "buffer" }, (err, data) => { @@ -48,7 +48,7 @@ test({ test({ name: "readlinkSyncSuccess", - skip: Deno.build.os === "win", + ignore: Deno.build.os === "win", fn() { const data = readlinkSync(newname); assertEquals(typeof data, "string"); @@ -58,7 +58,7 @@ test({ test({ name: "readlinkEncodeBufferSuccess", - skip: Deno.build.os === "win", + ignore: Deno.build.os === "win", fn() { const data = readlinkSync(newname, { encoding: "buffer" }); assert(data instanceof Uint8Array); diff --git a/std/textproto/reader_test.ts b/std/textproto/reader_test.ts index 2ceeb7eef..7aead064b 100644 --- a/std/textproto/reader_test.ts +++ b/std/textproto/reader_test.ts @@ -19,7 +19,7 @@ function reader(s: string): TextProtoReader { } test({ - skip: true, + ignore: true, name: "[textproto] Reader : DotBytes", async fn(): Promise<void> { const _input = |