-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Split up fixture output files
- Loading branch information
Showing
85 changed files
with
1,074 additions
and
1,094 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# name: load "test" directory by default | ||
# command: ["qunit"] | ||
|
||
TAP version 13 | ||
ok 1 First > 1 | ||
ok 2 Second > 1 | ||
1..2 | ||
# pass 2 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# name: load mixture of file, directory, and glob | ||
# command: ["qunit","test","basic-one.js","glob/**/*-test.js"] | ||
|
||
TAP version 13 | ||
ok 1 Single > has a test | ||
ok 2 A-Test > derp | ||
ok 3 Nested-Test > herp | ||
ok 4 First > 1 | ||
ok 5 Second > 1 | ||
1..5 | ||
# pass 5 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# name: load a directory | ||
# command: ["qunit","test"] | ||
|
||
TAP version 13 | ||
ok 1 First > 1 | ||
ok 2 Second > 1 | ||
1..2 | ||
# pass 2 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# name: load file not found | ||
# command: ["qunit","does-not-exist.js"] | ||
|
||
# stderr | ||
No files were found matching: does-not-exist.js | ||
|
||
# exit code: 1 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# name: load glob pattern | ||
# command: ["qunit","glob/**/*-test.js"] | ||
|
||
TAP version 13 | ||
ok 1 A-Test > derp | ||
ok 2 Nested-Test > herp | ||
1..2 | ||
# pass 2 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# name: load multiple files | ||
# command: ["qunit","basic-one.js","basic-two.js"] | ||
|
||
TAP version 13 | ||
ok 1 Single > has a test | ||
ok 2 Double > has a test | ||
ok 3 Double > has another test | ||
1..3 | ||
# pass 3 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# name: load single file | ||
# command: ["qunit","basic-one.js"] | ||
|
||
TAP version 13 | ||
ok 1 Single > has a test | ||
1..1 | ||
# pass 1 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# name: assert.expect() different count | ||
# command: ["qunit", "assert-expect-failure.js"] | ||
|
||
TAP version 13 | ||
not ok 1 failing test | ||
--- | ||
message: Expected 2 assertions, but 1 were run | ||
severity: failed | ||
actual : null | ||
expected: undefined | ||
stack: | | ||
at /qunit/test/cli/fixtures/assert-expect-failure.js:1:7 | ||
at internal | ||
... | ||
1..1 | ||
# pass 0 | ||
# skip 0 | ||
# todo 0 | ||
# fail 1 | ||
|
||
# exit code: 1 |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# name: assert.expect() no assertions | ||
# command: ["qunit", "assert-expect-none.js"] | ||
|
||
TAP version 13 | ||
not ok 1 no assertions | ||
--- | ||
message: Expected at least one assertion, but none were run - call expect(0) to accept zero assertions. | ||
severity: failed | ||
actual : null | ||
expected: undefined | ||
stack: | | ||
at /qunit/test/cli/fixtures/assert-expect-none.js:1:7 | ||
at internal | ||
... | ||
1..1 | ||
# pass 0 | ||
# skip 0 | ||
# todo 0 | ||
# fail 1 | ||
|
||
# exit code: 1 |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# name: module() with promise | ||
# command: ["qunit","async-module-warning-promise.js"] | ||
|
||
TAP version 13 | ||
ok 1 module manually returning a promise > has a test | ||
1..1 | ||
# pass 1 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 | ||
|
||
# stderr | ||
Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0. |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# name: module() with async function | ||
# command: ["qunit","async-module-warning.js"] | ||
|
||
TAP version 13 | ||
ok 1 resulting parent module > has a test | ||
1..1 | ||
# pass 1 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 | ||
|
||
# stderr | ||
Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0. |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# name: rejection from callbacks | ||
# command: ["qunit", "callbacks-rejected.js"] | ||
|
||
TAP version 13 | ||
not ok 1 global failure | ||
--- | ||
message: Error: begin | ||
severity: failed | ||
stack: | | ||
Error: begin | ||
at /qunit/test/cli/fixtures/callbacks-rejected.js:8:25 | ||
at qunit.js | ||
at internal | ||
... | ||
Bail out! Error: begin | ||
|
||
# stderr | ||
Error: Process exited before tests finished running | ||
|
||
# exit code: 1 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# name: config.filter with inverted regex | ||
# command: ["qunit","config-filter-regex-exclude.js"] | ||
|
||
TAP version 13 | ||
ok 1 filter > foo test | ||
ok 2 filter > Bar test | ||
1..2 | ||
# pass 2 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# name: config.filter with a regex | ||
# command: ["qunit","config-filter-regex.js"] | ||
|
||
TAP version 13 | ||
ok 1 filter > foo test | ||
ok 2 filter > FOO test | ||
ok 3 filter > bar test | ||
1..3 | ||
# pass 3 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# name: config.filter with a string | ||
# command: ["qunit","config-filter-string.js"] | ||
|
||
TAP version 13 | ||
ok 1 filter > foo test | ||
ok 2 filter > bar test | ||
1..2 | ||
# pass 2 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# name: config.module | ||
# command: ["qunit","config-module.js"] | ||
|
||
TAP version 13 | ||
ok 1 Module B > Test B | ||
1..1 | ||
# pass 1 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# name: config.moduleId | ||
# command: ["qunit", "config-moduleId.js"] | ||
|
||
TAP version 13 | ||
ok 1 module A scoped > module C nested > test C1 | ||
ok 2 module D scoped > test D1 | ||
ok 3 module D scoped > module E nested > test E1 | ||
ok 4 module D scoped > test D2 | ||
ok 5 module F flat > test F1 | ||
1..5 | ||
# pass 5 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# name: config.noglobals and add a global | ||
# command: ["qunit", "config-noglobals-add.js"] | ||
|
||
TAP version 13 | ||
not ok 1 adds global var | ||
--- | ||
message: Introduced global variable(s): dummyGlobal | ||
severity: failed | ||
actual : null | ||
expected: undefined | ||
stack: | | ||
at qunit.js | ||
... | ||
1..1 | ||
# pass 0 | ||
# skip 0 | ||
# todo 0 | ||
# fail 1 | ||
|
||
# exit code: 1 |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# name: config.noglobals and add ignored DOM global | ||
# command: ["qunit", "config-noglobals-ignored.js"] | ||
|
||
TAP version 13 | ||
ok 1 adds global var | ||
1..1 | ||
# pass 1 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# name: config.noglobals and remove a global | ||
# command: ["qunit","config-noglobals-remove.js"] | ||
|
||
TAP version 13 | ||
not ok 1 deletes global var | ||
--- | ||
message: Deleted global variable(s): dummyGlobal | ||
severity: failed | ||
actual : null | ||
expected: undefined | ||
stack: | | ||
at qunit.js | ||
... | ||
1..1 | ||
# pass 0 | ||
# skip 0 | ||
# todo 0 | ||
# fail 1 | ||
|
||
# exit code: 1 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# name: assert.expect() missing and config.requireExpects=true | ||
# command: ["qunit","config-requireExpects.js"] | ||
|
||
TAP version 13 | ||
not ok 1 passing test | ||
--- | ||
message: Expected number of assertions to be defined, but expect() was not called. | ||
severity: failed | ||
actual : null | ||
expected: undefined | ||
stack: | | ||
at /qunit/test/cli/fixtures/config-requireExpects.js:3:7 | ||
at internal | ||
... | ||
1..1 | ||
# pass 0 | ||
# skip 0 | ||
# todo 0 | ||
# fail 1 | ||
|
||
# exit code: 1 |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# name: config.testId | ||
# command: ["qunit","config-testId.js"] | ||
|
||
TAP version 13 | ||
ok 1 test 2 | ||
ok 2 module A > module B > test 1 | ||
ok 3 module A > module C > test 2 | ||
ok 4 module D > test 1 | ||
1..4 | ||
# pass 4 | ||
# skip 0 | ||
# todo 0 | ||
# fail 0 |
Oops, something went wrong.