diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-04-26 09:52:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 09:52:46 +0300 |
commit | 317700513cc732bb2371edbe645555feadbbc545 (patch) | |
tree | efc28c578903563cd72d8436dbefcec32ab161c7 /tests/lib/mocha-3.1.0/test/acceptance/misc/only | |
parent | bc8222d451337185db343486319af6782b009148 (diff) | |
parent | 199e43ef5809d09803416db72ce0ace6c9a4d895 (diff) |
Merge pull request #11651 from piwik/3.x-dev3.0.4-b1
Release Piwik 3.0.4-b1
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/acceptance/misc/only')
7 files changed, 0 insertions, 377 deletions
diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/bdd-require.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/bdd-require.spec.js deleted file mode 100644 index 516dad7afa..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/bdd-require.spec.js +++ /dev/null @@ -1,18 +0,0 @@ -/*jshint node: true */ - -var mocha = require('../../../../lib/mocha'); - -var beforeEach = mocha.beforeEach; -var it = mocha.it; -var describe = mocha.describe; - -describe('it.only via require("mocha")', function() { - beforeEach(function() { - this.didRunBeforeEach = true; - }); - describe("nested within a describe/context", function() { - it.only('should run all enclosing beforeEach hooks', function() { - require('assert').equal(this.didRunBeforeEach, true); - }); - }); -}); diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/bdd.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/bdd.spec.js deleted file mode 100644 index 7a33a74eac..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/bdd.spec.js +++ /dev/null @@ -1,125 +0,0 @@ -describe('should only run .only test in this bdd suite', function() { - it('should not run this test', function() { - (0).should.equal(1, 'this test should have been skipped'); - }); - it.only('should run this test', function() { - (0).should.equal(0, 'this .only test should run'); - }); - it('should run this test, not (includes the title of the .only test)', function() { - (0).should.equal(1, 'this test should have been skipped'); - }); -}); - -describe('should not run this suite', function() { - it('should not run this test', function() { - (true).should.equal(false); - }); - - it('should not run this test', function() { - (true).should.equal(false); - }); - - it('should not run this test', function() { - (true).should.equal(false); - }); -}); - -describe.only('should run all tests in this bdd suite', function() { - it('should run this test #1', function() { - (true).should.equal(true); - }); - - it('should run this test #2', function() { - (1).should.equal(1); - }); - - it('should run this test #3', function() { - ('foo').should.equal('foo'); - }); -}); - -describe('should run only suites that marked as `only`', function() { - describe.only('should run all this tdd suite', function() { - it('should run this test #1', function() { - (true).should.equal(true); - }); - - it('should run this test #2', function() { - (true).should.equal(true); - }); - }); - - describe('should not run this suite', function() { - it('should run this test', function() { - (true).should.equal(false); - }); - }); -}); - -// Nested situation -describe('should not run parent tests', function() { - it('should not run this test', function() { - (true).should.equal(false); - }); - describe('and not the child tests too', function() { - it('should not run this test', function() { - (true).should.equal(false); - }); - describe.only('but run all the tests in this suite', function() { - it('should run this test #1', function() { - (true).should.equal(true); - }); - it('should run this test #2', function() { - (true).should.equal(true); - }); - }); - }); -}); - -// mark test as `only` override the suite behavior -describe.only('should run only tests that marked as `only`', function() { - it('should not run this test #1', function() { - (false).should.equal(true); - }); - - it.only('should run this test #2', function() { - (true).should.equal(true); - }); - - it('should not run this test #3', function() { - (false).should.equal(true); - }); - - it.only('should run this test #4', function() { - (true).should.equal(true); - }); -}); - -describe.only('Should run only test cases that mark as only', function() { - it.only('should runt his test', function() { - (true).should.equal(true); - }); - - it('should not run this test', function() { - (false).should.equal(true); - }); - - describe('should not run this suite', function() { - it('should not run this test', function() { - (false).should.equal(true); - }); - }); -}); - -// Root Suite -it.only('#Root-Suite, should run this test-case #1', function() { - (true).should.equal(true); -}); - -it.only('#Root-Suite, should run this test-case #2', function() { - (true).should.equal(true); -}); - -it('#Root-Suite, should not run this test', function() { - (false).should.equal(true); -}); diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/bdd.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/bdd.spec.js deleted file mode 100644 index e923876f84..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/bdd.spec.js +++ /dev/null @@ -1,12 +0,0 @@ -// Root-only test cases -it.only('#Root-Suite, should run this bdd test-case #1', function() { - (true).should.equal(true); -}); - -it('#Root-Suite, should not run this bdd test-case #2', function() { - (false).should.equal(true); -}); - -it('#Root-Suite, should not run this bdd test-case #3', function() { - (false).should.equal(true); -});
\ No newline at end of file diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/qunit.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/qunit.spec.js deleted file mode 100644 index 59ad72c3bf..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/qunit.spec.js +++ /dev/null @@ -1,12 +0,0 @@ -// Root-only test cases -test.only('#Root-Suite, should run this qunit test-case #1', function() { - (true).should.equal(true); -}); - -test('#Root-Suite, should not run this qunit test-case #2', function() { - (false).should.equal(true); -}); - -test('#Root-Suite, should not run this qunit test-case #3', function() { - (false).should.equal(true); -});
\ No newline at end of file diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/tdd.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/tdd.spec.js deleted file mode 100644 index 08d456848b..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/global/tdd.spec.js +++ /dev/null @@ -1,12 +0,0 @@ -// Root-only test cases -test.only('#Root-Suite, should run this tdd test-case #1', function() { - (true).should.equal(true); -}); - -test('#Root-Suite, should not run this tdd test-case #2', function() { - (false).should.equal(true); -}); - -test('#Root-Suite, should not run this tdd test-case #3', function() { - (false).should.equal(true); -});
\ No newline at end of file diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js deleted file mode 100644 index 1248adeba7..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/qunit.spec.js +++ /dev/null @@ -1,73 +0,0 @@ -// Root Suite -test.only('#Root-Suite, should run this test-case #1', function() { - (true).should.equal(true); -}); - -test.only('#Root-Suite, should run this test-case #2', function() { - (true).should.equal(true); -}); - -test('#Root-Suite, should not run this test', function() { - (false).should.equal(true); -}); - -suite('should only run .only test in this qunit suite'); - -test('should not run this test', function() { - (0).should.equal(1, 'this test should have been skipped'); -}); -test.only('should run this test', function() { - (0).should.equal(0, 'this .only test should run'); -}); -test('should run this test, not (includes the title of the .only test)', function() { - (0).should.equal(1, 'this test should have been skipped'); -}); - -// Mark suite -suite.only('should run all tests in this suite'); - -test('should run this test #1', function() { - (true).should.equal(true); -}); - -test('should run this test #2', function() { - (true).should.equal(true); -}); - -test('should run this test #3', function() { - (true).should.equal(true); -}); - -// Unmark this suite -suite('should not run any of this suite\'s tests'); - -test('should not run this test', function() { - (false).should.equal(true); -}); - -test('should not run this test', function() { - (false).should.equal(true); -}); - -test('should not run this test', function() { - (false).should.equal(true); -}); - -// Mark test as `only` override the suite behavior -suite.only('should run only tests that marked as `only`'); - -test('should not run this test #1', function() { - (false).should.equal(true); -}); - -test.only('should not run this test #2', function() { - (true).should.equal(true); -}); - -test('should not run this test #3', function() { - (false).should.equal(true); -}); - -test.only('should not run this test #4', function() { - (true).should.equal(true); -});
\ No newline at end of file diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/tdd.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/only/tdd.spec.js deleted file mode 100644 index 7e37e7a3b3..0000000000 --- a/tests/lib/mocha-3.1.0/test/acceptance/misc/only/tdd.spec.js +++ /dev/null @@ -1,125 +0,0 @@ -suite('should only run .only test in this tdd suite', function() { - test('should not run this test', function() { - (0).should.equal(1, 'this test should have been skipped'); - }); - test.only('should run this test', function() { - (0).should.equal(0, 'this .only test should run'); - }); - test('should run this test, not (includes the title of the .only test)', function() { - (0).should.equal(1, 'this test should have been skipped'); - }); -}); - -suite('should not run this suite', function() { - test('should not run this test', function() { - (true).should.equal(false); - }); - - test('should not run this test', function() { - (true).should.equal(false); - }); - - test('should not run this test', function() { - (true).should.equal(false); - }); -}); - -suite.only('should run all tests in this tdd suite', function() { - test('should run this test #1', function() { - (true).should.equal(true); - }); - - test('should run this test #2', function() { - (1).should.equal(1); - }); - - test('should run this test #3', function() { - ('foo').should.equal('foo'); - }); -}); - -suite('should run only suites that marked as `only`', function() { - suite.only('should run all this tdd suite', function() { - test('should run this test #1', function() { - (true).should.equal(true); - }); - - test('should run this test #2', function() { - (true).should.equal(true); - }); - }); - - suite('should not run this suite', function() { - test('should not run this test', function() { - (true).should.equal(false); - }); - }); -}); - -// Nested situation -suite('should not run parent tests', function() { - test('should not run this test', function() { - (true).should.equal(false); - }); - suite('and not the child tests too', function() { - test('should not run this test', function() { - (true).should.equal(false); - }); - suite.only('but run all the tests in this suite', function() { - test('should run this test #1', function() { - (true).should.equal(true); - }); - test('should run this test #2', function() { - (true).should.equal(true); - }); - }); - }); -}); - -// mark test as `only` override the suite behavior -suite.only('should run only tests that marked as `only`', function() { - test('should not run this test #1', function() { - (false).should.equal(true); - }); - - test.only('should run this test #2', function() { - (true).should.equal(true); - }); - - test('should not run this test #3', function() { - (false).should.equal(true); - }); - - test.only('should run this test #4', function() { - (true).should.equal(true); - }); -}); - -suite.only('Should run only test cases that mark as only', function() { - test.only('should runt his test', function() { - (true).should.equal(true); - }); - - test('should not run this test', function() { - (false).should.equal(true); - }); - - suite('should not run this suite', function() { - test('should not run this test', function() { - (false).should.equal(true); - }); - }); -}); - -// Root Suite -test.only('#Root-Suite, should run this test-case #1', function() { - (true).should.equal(true); -}); - -test.only('#Root-Suite, should run this test-case #2', function() { - (true).should.equal(true); -}); - -test('#Root-Suite, should not run this test', function() { - (false).should.equal(true); -}); |