@@ -80,7 +80,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
env.throwOnExpectationFailure(throwingExpectationFailures);
|
env.throwOnExpectationFailure(throwingExpectationFailures);
|
||||||
|
|
||||||
var random = queryString.getParam("random");
|
var random = queryString.getParam("random");
|
||||||
env.randomizeTests(random);
|
|
||||||
|
if (random !== undefined) {
|
||||||
|
env.randomizeTests(random);
|
||||||
|
}
|
||||||
|
|
||||||
var seed = queryString.getParam("seed");
|
var seed = queryString.getParam("seed");
|
||||||
if (seed) {
|
if (seed) {
|
||||||
|
|||||||
@@ -58,7 +58,10 @@
|
|||||||
env.throwOnExpectationFailure(throwingExpectationFailures);
|
env.throwOnExpectationFailure(throwingExpectationFailures);
|
||||||
|
|
||||||
var random = queryString.getParam("random");
|
var random = queryString.getParam("random");
|
||||||
env.randomizeTests(random);
|
|
||||||
|
if (random !== undefined) {
|
||||||
|
env.randomizeTests(random);
|
||||||
|
}
|
||||||
|
|
||||||
var seed = queryString.getParam("seed");
|
var seed = queryString.getParam("seed");
|
||||||
if (seed) {
|
if (seed) {
|
||||||
|
|||||||
@@ -707,7 +707,7 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
var currentlyExecutingSuites = [];
|
var currentlyExecutingSuites = [];
|
||||||
var currentDeclarationSuite = null;
|
var currentDeclarationSuite = null;
|
||||||
var throwOnExpectationFailure = false;
|
var throwOnExpectationFailure = false;
|
||||||
var random = false;
|
var random = true;
|
||||||
var seed = null;
|
var seed = null;
|
||||||
|
|
||||||
var currentSuite = function() {
|
var currentSuite = function() {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ describe("Custom Matchers (Integration)", function() {
|
|||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
env = new jasmineUnderTest.Env();
|
env = new jasmineUnderTest.Env();
|
||||||
|
env.randomizeTests(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("allows adding more matchers local to a spec", function(done) {
|
it("allows adding more matchers local to a spec", function(done) {
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ describe("Env integration", function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
env.addReporter({ jasmineDone: assertions});
|
env.addReporter({ jasmineDone: assertions});
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
env.describe("A Suite", function() {
|
env.describe("A Suite", function() {
|
||||||
env.it("with a spec", function() {
|
env.it("with a spec", function() {
|
||||||
@@ -82,6 +83,7 @@ describe("Env integration", function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
env.addReporter({ jasmineDone: assertions });
|
env.addReporter({ jasmineDone: assertions });
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
env.describe("Outer suite", function() {
|
env.describe("Outer suite", function() {
|
||||||
env.it("an outer spec", function() {
|
env.it("an outer spec", function() {
|
||||||
@@ -116,6 +118,7 @@ describe("Env integration", function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
env.addReporter({ jasmineDone: assertions });
|
env.addReporter({ jasmineDone: assertions });
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
|
|
||||||
env.describe("Outer suite", function() {
|
env.describe("Outer suite", function() {
|
||||||
@@ -234,6 +237,7 @@ describe("Env integration", function() {
|
|||||||
var env = new jasmineUnderTest.Env();
|
var env = new jasmineUnderTest.Env();
|
||||||
|
|
||||||
env.addReporter({jasmineDone: done});
|
env.addReporter({jasmineDone: done});
|
||||||
|
env.randomizeTests(false);
|
||||||
env.describe("tests", function() {
|
env.describe("tests", function() {
|
||||||
var firstTimeThrough = true, firstSpecContext, secondSpecContext;
|
var firstTimeThrough = true, firstSpecContext, secondSpecContext;
|
||||||
|
|
||||||
@@ -909,6 +913,7 @@ describe("Env integration", function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
env.addReporter({ jasmineDone: assertions });
|
env.addReporter({ jasmineDone: assertions });
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
env.describe("tests", function() {
|
env.describe("tests", function() {
|
||||||
env.it("test with mock clock", function() {
|
env.it("test with mock clock", function() {
|
||||||
@@ -1472,6 +1477,7 @@ describe("Env integration", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
env.addReporter(reporter);
|
env.addReporter(reporter);
|
||||||
|
env.randomizeTests(true);
|
||||||
env.execute();
|
env.execute();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1602,6 +1608,7 @@ describe("Env integration", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
env.addReporter(reporter);
|
env.addReporter(reporter);
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
env.describe("testing custom equality testers", function() {
|
env.describe("testing custom equality testers", function() {
|
||||||
env.it("with a custom tester", function() {
|
env.it("with a custom tester", function() {
|
||||||
@@ -1637,6 +1644,7 @@ describe("Env integration", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
env.addReporter(reporter);
|
env.addReporter(reporter);
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
env.describe("testing custom equality testers", function() {
|
env.describe("testing custom equality testers", function() {
|
||||||
env.beforeAll(function() { env.addCustomEqualityTester(function(a, b) { return true; }); });
|
env.beforeAll(function() { env.addCustomEqualityTester(function(a, b) { return true; }); });
|
||||||
@@ -1677,6 +1685,7 @@ describe("Env integration", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
env.addReporter(reporter);
|
env.addReporter(reporter);
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
env.describe("testing custom equality testers", function() {
|
env.describe("testing custom equality testers", function() {
|
||||||
env.it("with a custom tester", function() {
|
env.it("with a custom tester", function() {
|
||||||
@@ -1729,6 +1738,7 @@ describe("Env integration", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
env.addReporter(reporter);
|
env.addReporter(reporter);
|
||||||
|
env.randomizeTests(false);
|
||||||
|
|
||||||
env.describe("testing custom equality testers", function() {
|
env.describe("testing custom equality testers", function() {
|
||||||
env.beforeAll(function() { env.addCustomEqualityTester(function(a, b) { return true; })});
|
env.beforeAll(function() { env.addCustomEqualityTester(function(a, b) { return true; })});
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
describe("jasmine spec running", function () {
|
describe("spec running", function () {
|
||||||
var env;
|
var env;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
env = new jasmineUnderTest.Env();
|
env = new jasmineUnderTest.Env();
|
||||||
|
env.randomizeTests(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should assign spec ids sequentially', function() {
|
it('should assign spec ids sequentially', function() {
|
||||||
@@ -740,8 +741,8 @@ describe("jasmine spec running", function () {
|
|||||||
|
|
||||||
it("should run the tests in a consistent order when a seed is supplied", function(done) {
|
it("should run the tests in a consistent order when a seed is supplied", function(done) {
|
||||||
var actions = [];
|
var actions = [];
|
||||||
env.randomizeTests(true);
|
|
||||||
env.seed('123456');
|
env.seed('123456');
|
||||||
|
env.randomizeTests(true);
|
||||||
|
|
||||||
env.beforeEach(function () {
|
env.beforeEach(function () {
|
||||||
actions.push('topSuite beforeEach');
|
actions.push('topSuite beforeEach');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
describe("New HtmlReporter", function() {
|
describe("HtmlReporter", function() {
|
||||||
it("builds the initial DOM elements, including the title banner", function() {
|
it("builds the initial DOM elements, including the title banner", function() {
|
||||||
var env = new jasmineUnderTest.Env(),
|
var env = new jasmineUnderTest.Env(),
|
||||||
container = document.createElement("div"),
|
container = document.createElement("div"),
|
||||||
@@ -575,6 +575,7 @@ describe("New HtmlReporter", function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
env.randomizeTests(false);
|
||||||
reporter.initialize();
|
reporter.initialize();
|
||||||
reporter.jasmineDone({});
|
reporter.jasmineDone({});
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
var currentlyExecutingSuites = [];
|
var currentlyExecutingSuites = [];
|
||||||
var currentDeclarationSuite = null;
|
var currentDeclarationSuite = null;
|
||||||
var throwOnExpectationFailure = false;
|
var throwOnExpectationFailure = false;
|
||||||
var random = false;
|
var random = true;
|
||||||
var seed = null;
|
var seed = null;
|
||||||
|
|
||||||
var currentSuite = function() {
|
var currentSuite = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user