From d16aa550cbee8679e362cc79bc3ab0bff5652605 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Fri, 1 Dec 2017 08:45:58 -0800 Subject: [PATCH] Treat random= as a no-op rather than disabling randomization [#109197518] --- lib/jasmine-core/boot.js | 2 +- lib/jasmine-core/boot/boot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jasmine-core/boot.js b/lib/jasmine-core/boot.js index 583ccd5f..72f45b5e 100644 --- a/lib/jasmine-core/boot.js +++ b/lib/jasmine-core/boot.js @@ -81,7 +81,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. var random = queryString.getParam("random"); - if (random !== undefined) { + if (random !== undefined && random !== "") { env.randomizeTests(random); } diff --git a/lib/jasmine-core/boot/boot.js b/lib/jasmine-core/boot/boot.js index 5923245a..8e12623d 100644 --- a/lib/jasmine-core/boot/boot.js +++ b/lib/jasmine-core/boot/boot.js @@ -59,7 +59,7 @@ var random = queryString.getParam("random"); - if (random !== undefined) { + if (random !== undefined && random !== "") { env.randomizeTests(random); }