tiddlywiki-production
Version:
a non-linear personal web notebook
1 lines • 327 kB
JavaScript
$tw.preloadTiddler({"title":"$:/plugins/tiddlywiki/jasmine","name":"Jasmine","description":"Jasmine testing framework","list":"readme","version":"5.1.22","plugin-type":"plugin","dependents":"","type":"application/json","text":"{\"tiddlers\":{\"$:/plugins/tiddlywiki/jasmine/jasmine/command.js\":{\"text\":\"var path = require('path'),\\n fs = require('fs');\\n\\nexports = module.exports = Command;\\n\\nvar subCommands = {\\n init: {\\n description: 'initialize jasmine',\\n action: initJasmine\\n },\\n examples: {\\n description: 'install examples',\\n action: installExamples\\n },\\n help: {\\n description: 'show help',\\n action: help,\\n alias: '-h'\\n },\\n version: {\\n description: 'show jasmine and jasmine-core versions',\\n action: version,\\n alias: '-v'\\n }\\n};\\n\\nfunction Command(projectBaseDir, examplesDir, print) {\\n this.projectBaseDir = projectBaseDir;\\n this.specDir = path.join(projectBaseDir, 'spec');\\n\\n var command = this;\\n\\n this.run = function(jasmine, commands) {\\n setEnvironmentVariables(commands);\\n\\n var commandToRun;\\n Object.keys(subCommands).forEach(function(cmd) {\\n var commandObject = subCommands[cmd];\\n if (commands.indexOf(cmd) >= 0) {\\n commandToRun = commandObject;\\n } else if(commandObject.alias && commands.indexOf(commandObject.alias) >= 0) {\\n commandToRun = commandObject;\\n }\\n });\\n\\n if (commandToRun) {\\n commandToRun.action({jasmine: jasmine, projectBaseDir: command.projectBaseDir, specDir: command.specDir, examplesDir: examplesDir, print: print});\\n } else {\\n var env = parseOptions(commands);\\n if (env.unknownOptions.length > 0) {\\n process.exitCode = 1;\\n print('Unknown options: ' + env.unknownOptions.join(', '));\\n print('');\\n help({print: print});\\n } else {\\n runJasmine(jasmine, env, print);\\n }\\n }\\n };\\n}\\n\\nfunction isFileArg(arg) {\\n return arg.indexOf('--') !== 0 && !isEnvironmentVariable(arg);\\n}\\n\\nfunction parseOptions(argv) {\\n var files = [],\\n helpers = [],\\n requires = [],\\n unknownOptions = [],\\n color = process.stdout.isTTY || false,\\n reporter,\\n configPath,\\n filter,\\n stopOnFailure,\\n failFast,\\n random,\\n seed;\\n\\n argv.forEach(function(arg) {\\n if (arg === '--no-color') {\\n color = false;\\n } else if (arg === '--color') {\\n color = true;\\n } else if (arg.match(\\\"^--filter=\\\")) {\\n filter = arg.match(\\\"^--filter=(.*)\\\")[1];\\n } else if (arg.match(\\\"^--helper=\\\")) {\\n helpers.push(arg.match(\\\"^--helper=(.*)\\\")[1]);\\n } else if (arg.match(\\\"^--require=\\\")) {\\n requires.push(arg.match(\\\"^--require=(.*)\\\")[1]);\\n } else if (arg.match(\\\"^--stop-on-failure=\\\")) {\\n stopOnFailure = arg.match(\\\"^--stop-on-failure=(.*)\\\")[1] === 'true';\\n } else if (arg.match(\\\"^--fail-fast=\\\")) {\\n failFast = arg.match(\\\"^--fail-fast=(.*)\\\")[1] === 'true';\\n } else if (arg.match(\\\"^--random=\\\")) {\\n random = arg.match(\\\"^--random=(.*)\\\")[1] === 'true';\\n } else if (arg.match(\\\"^--seed=\\\")) {\\n seed = arg.match(\\\"^--seed=(.*)\\\")[1];\\n } else if (arg.match(\\\"^--config=\\\")) {\\n configPath = arg.match(\\\"^--config=(.*)\\\")[1];\\n } else if (arg.match(\\\"^--reporter=\\\")) {\\n reporter = arg.match(\\\"^--reporter=(.*)\\\")[1];\\n } else if (isFileArg(arg)) {\\n files.push(arg);\\n } else if (!isEnvironmentVariable(arg)) {\\n unknownOptions.push(arg);\\n }\\n });\\n return {\\n color: color,\\n configPath: configPath,\\n filter: filter,\\n stopOnFailure: stopOnFailure,\\n failFast: failFast,\\n helpers: helpers,\\n requires: requires,\\n reporter: reporter,\\n files: files,\\n random: random,\\n seed: seed,\\n unknownOptions: unknownOptions\\n };\\n}\\n\\nfunction runJasmine(jasmine, env, print) {\\n jasmine.loadConfigFile(env.configPath || process.env.JASMINE_CONFIG_PATH);\\n if (env.stopOnFailure !== undefined) {\\n jasmine.stopSpecOnExpectationFailure(env.stopOnFailure);\\n }\\n if (env.failFast !== undefined) {\\n jasmine.stopOnSpecFailure(env.failFast);\\n }\\n if (env.seed !== undefined) {\\n jasmine.seed(env.seed);\\n }\\n if (env.random !== undefined) {\\n jasmine.randomizeTests(env.random);\\n }\\n if (env.helpers !== undefined && env.helpers.length) {\\n jasmine.addHelperFiles(env.helpers);\\n }\\n if (env.requires !== undefined && env.requires.length) {\\n jasmine.addRequires(env.requires);\\n }\\n if (env.reporter !== undefined) {\\n try {\\n var Report = require(env.reporter);\\n var reporter = new Report();\\n jasmine.clearReporters();\\n jasmine.addReporter(reporter);\\n } catch(e) {\\n print('failed to register reporter \\\"' + env.reporter + '\\\"');\\n print(e.message);\\n print(e.stack);\\n }\\n }\\n jasmine.showColors(env.color);\\n jasmine.execute(env.files, env.filter);\\n}\\n\\nfunction initJasmine(options) {\\n var print = options.print;\\n var specDir = options.specDir;\\n makeDirStructure(path.join(specDir, 'support/'));\\n if(!fs.existsSync(path.join(specDir, 'support/jasmine.json'))) {\\n fs.writeFileSync(path.join(specDir, 'support/jasmine.json'), fs.readFileSync(path.join(__dirname, '../lib/examples/jasmine.json'), 'utf-8'));\\n }\\n else {\\n print('spec/support/jasmine.json already exists in your project.');\\n }\\n}\\n\\nfunction installExamples(options) {\\n var specDir = options.specDir;\\n var projectBaseDir = options.projectBaseDir;\\n var examplesDir = options.examplesDir;\\n\\n makeDirStructure(path.join(specDir, 'support'));\\n makeDirStructure(path.join(specDir, 'jasmine_examples'));\\n makeDirStructure(path.join(specDir, 'helpers', 'jasmine_examples'));\\n makeDirStructure(path.join(projectBaseDir, 'lib', 'jasmine_examples'));\\n\\n copyFiles(\\n path.join(examplesDir, 'spec', 'helpers', 'jasmine_examples'),\\n path.join(specDir, 'helpers', 'jasmine_examples'),\\n new RegExp(/[Hh]elper\\\\.js/)\\n );\\n\\n copyFiles(\\n path.join(examplesDir, 'lib', 'jasmine_examples'),\\n path.join(projectBaseDir, 'lib', 'jasmine_examples'),\\n new RegExp(/\\\\.js/)\\n );\\n\\n copyFiles(\\n path.join(examplesDir, 'spec', 'jasmine_examples'),\\n path.join(specDir, 'jasmine_examples'),\\n new RegExp(/[Ss]pec.js/)\\n );\\n}\\n\\nfunction help(options) {\\n var print = options.print;\\n print('Usage: jasmine [command] [options] [files]');\\n print('');\\n print('Commands:');\\n Object.keys(subCommands).forEach(function(cmd) {\\n var commandNameText = cmd;\\n if(subCommands[cmd].alias) {\\n commandNameText = commandNameText + ',' + subCommands[cmd].alias;\\n }\\n print('%s\\\\t%s', lPad(commandNameText, 10), subCommands[cmd].description);\\n });\\n print('');\\n print('If no command is given, jasmine specs will be run');\\n print('');\\n print('');\\n\\n print('Options:');\\n print('%s\\\\tturn off color in spec output', lPad('--no-color', 18));\\n print('%s\\\\tforce turn on color in spec output', lPad('--color', 18));\\n print('%s\\\\tfilter specs to run only those that match the given string', lPad('--filter=', 18));\\n print('%s\\\\tload helper files that match the given string', lPad('--helper=', 18));\\n print('%s\\\\tload module that match the given string', lPad('--require=', 18));\\n print('%s\\\\t[true|false] stop spec execution on expectation failure', lPad('--stop-on-failure=', 18));\\n print('%s\\\\t[true|false] stop Jasmine execution on spec failure', lPad('--fail-fast=', 18));\\n print('%s\\\\tpath to your optional jasmine.json', lPad('--config=', 18));\\n print('%s\\\\tpath to reporter to use instead of the default Jasmine reporter', lPad('--reporter=', 18));\\n print('');\\n print('The given arguments take precedence over options in your jasmine.json');\\n print('The path to your optional jasmine.json can also be configured by setting the JASMINE_CONFIG_PATH environment variable');\\n}\\n\\nfunction version(options) {\\n var print = options.print;\\n print('jasmine v' + require('../package.json').version);\\n print('jasmine-core v' + options.jasmine.coreVersion());\\n}\\n\\nfunction lPad(str, length) {\\n if (str.length >= length) {\\n return str;\\n } else {\\n return lPad(' ' + str, length);\\n }\\n}\\n\\nfunction copyFiles(srcDir, destDir, pattern) {\\n var srcDirFiles = fs.readdirSync(srcDir);\\n srcDirFiles.forEach(function(file) {\\n if (file.search(pattern) !== -1) {\\n fs.writeFileSync(path.join(destDir, file), fs.readFileSync(path.join(srcDir, file)));\\n }\\n });\\n}\\n\\nfunction makeDirStructure(absolutePath) {\\n var splitPath = absolutePath.split(path.sep);\\n splitPath.forEach(function(dir, index) {\\n if(index > 1) {\\n var fullPath = path.join(splitPath.slice(0, index).join('/'), dir);\\n if (!fs.existsSync(fullPath)) {\\n fs.mkdirSync(fullPath);\\n }\\n }\\n });\\n}\\n\\nfunction isEnvironmentVariable(command) {\\n var envRegExp = /(.*)=(.*)/;\\n return command.match(envRegExp);\\n}\\n\\nfunction setEnvironmentVariables(commands) {\\n commands.forEach(function (command) {\\n var regExpMatch = isEnvironmentVariable(command);\\n if(regExpMatch) {\\n var key = regExpMatch[1];\\n var value = regExpMatch[2];\\n process.env[key] = value;\\n }\\n });\\n}\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/jasmine/jasmine/command.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/jasmine/jasmine/jasmine.js\":{\"text\":\"var path = require('path'),\\n util = require('util'),\\n glob = require('glob'),\\n CompletionReporter = require('./reporters/completion_reporter'),\\n ConsoleSpecFilter = require('./filters/console_spec_filter');\\n\\nmodule.exports = Jasmine;\\nmodule.exports.ConsoleReporter = require('./reporters/console_reporter');\\n\\nfunction Jasmine(options) {\\n options = options || {};\\n var jasmineCore = options.jasmineCore || require('jasmine-core');\\n this.jasmineCorePath = path.join(jasmineCore.files.path, 'jasmine.js');\\n this.jasmine = jasmineCore.boot(jasmineCore);\\n this.projectBaseDir = options.projectBaseDir || path.resolve();\\n this.specDir = '';\\n this.specFiles = [];\\n this.helperFiles = [];\\n this.requires = [];\\n this.env = this.jasmine.getEnv({suppressLoadErrors: true});\\n this.reportersCount = 0;\\n this.completionReporter = new CompletionReporter();\\n this.onCompleteCallbackAdded = false;\\n this.exit = process.exit;\\n this.showingColors = true;\\n this.reporter = new module.exports.ConsoleReporter();\\n this.addReporter(this.reporter);\\n this.defaultReporterConfigured = false;\\n\\n var jasmineRunner = this;\\n this.completionReporter.onComplete(function(passed) {\\n jasmineRunner.exitCodeCompletion(passed);\\n });\\n this.checkExit = checkExit(this);\\n\\n this.coreVersion = function() {\\n return jasmineCore.version();\\n };\\n}\\n\\nJasmine.prototype.randomizeTests = function(value) {\\n this.env.configure({random: value});\\n};\\n\\nJasmine.prototype.seed = function(value) {\\n this.env.configure({seed: value});\\n};\\n\\nJasmine.prototype.showColors = function(value) {\\n this.showingColors = value;\\n};\\n\\nJasmine.prototype.addSpecFile = function(filePath) {\\n this.specFiles.push(filePath);\\n};\\n\\nJasmine.prototype.addReporter = function(reporter) {\\n this.env.addReporter(reporter);\\n this.reportersCount++;\\n};\\n\\nJasmine.prototype.clearReporters = function() {\\n this.env.clearReporters();\\n this.reportersCount = 0;\\n};\\n\\nJasmine.prototype.provideFallbackReporter = function(reporter) {\\n this.env.provideFallbackReporter(reporter);\\n};\\n\\nJasmine.prototype.configureDefaultReporter = function(options) {\\n options.timer = options.timer || new this.jasmine.Timer();\\n options.print = options.print || function() {\\n process.stdout.write(util.format.apply(this, arguments));\\n };\\n options.showColors = options.hasOwnProperty('showColors') ? options.showColors : true;\\n options.jasmineCorePath = options.jasmineCorePath || this.jasmineCorePath;\\n\\n this.reporter.setOptions(options);\\n this.defaultReporterConfigured = true;\\n};\\n\\nJasmine.prototype.addMatchers = function(matchers) {\\n this.env.addMatchers(matchers);\\n};\\n\\nJasmine.prototype.loadSpecs = function() {\\n this.specFiles.forEach(function(file) {\\n require(file);\\n });\\n};\\n\\nJasmine.prototype.loadHelpers = function() {\\n this.helperFiles.forEach(function(file) {\\n require(file);\\n });\\n};\\n\\nJasmine.prototype.loadRequires = function() {\\n this.requires.forEach(function(r) {\\n require(r);\\n });\\n};\\n\\nJasmine.prototype.loadConfigFile = function(configFilePath) {\\n try {\\n var absoluteConfigFilePath = path.resolve(this.projectBaseDir, configFilePath || 'spec/support/jasmine.json');\\n var config = require(absoluteConfigFilePath);\\n this.loadConfig(config);\\n } catch (e) {\\n if(configFilePath || e.code != 'MODULE_NOT_FOUND') { throw e; }\\n }\\n};\\n\\nJasmine.prototype.loadConfig = function(config) {\\n this.specDir = config.spec_dir || this.specDir;\\n\\n var configuration = {};\\n\\n if (config.stopSpecOnExpectationFailure !== undefined) {\\n configuration.oneFailurePerSpec = config.stopSpecOnExpectationFailure;\\n }\\n\\n if (config.stopOnSpecFailure !== undefined) {\\n configuration.failFast = config.stopOnSpecFailure;\\n }\\n\\n if (config.random !== undefined) {\\n configuration.random = config.random;\\n }\\n\\n if (Object.keys(configuration).length > 0) {\\n this.env.configure(configuration);\\n }\\n\\n if(config.helpers) {\\n this.addHelperFiles(config.helpers);\\n }\\n\\n if(config.requires) {\\n this.addRequires(config.requires);\\n }\\n\\n if(config.spec_files) {\\n this.addSpecFiles(config.spec_files);\\n }\\n};\\n\\nJasmine.prototype.addHelperFiles = addFiles('helperFiles');\\nJasmine.prototype.addSpecFiles = addFiles('specFiles');\\n\\nJasmine.prototype.addRequires = function(requires) {\\n var jasmineRunner = this;\\n requires.forEach(function(r) {\\n jasmineRunner.requires.push(r);\\n });\\n};\\n\\nfunction addFiles(kind) {\\n return function (files) {\\n var jasmineRunner = this;\\n var fileArr = this[kind];\\n\\n var includeFiles = [];\\n var excludeFiles = [];\\n files.forEach(function(file) {\\n if (file.startsWith('!')) {\\n var excludeFile = file.substring(1);\\n if(!(path.isAbsolute && path.isAbsolute(excludeFile))) {\\n excludeFile = path.join(jasmineRunner.projectBaseDir, jasmineRunner.specDir, excludeFile);\\n }\\n\\n excludeFiles.push(excludeFile);\\n } else {\\n includeFiles.push(file);\\n }\\n });\\n\\n includeFiles.forEach(function(file) {\\n if(!(path.isAbsolute && path.isAbsolute(file))) {\\n file = path.join(jasmineRunner.projectBaseDir, jasmineRunner.specDir, file);\\n }\\n var filePaths = glob.sync(file, { ignore: excludeFiles });\\n filePaths.forEach(function(filePath) {\\n // glob will always output '/' as a segment separator but the fileArr may use \\\\ on windows\\n // fileArr needs to be checked for both versions\\n if(fileArr.indexOf(filePath) === -1 && fileArr.indexOf(path.normalize(filePath)) === -1) {\\n fileArr.push(filePath);\\n }\\n });\\n });\\n };\\n}\\n\\nJasmine.prototype.onComplete = function(onCompleteCallback) {\\n this.completionReporter.onComplete(onCompleteCallback);\\n};\\n\\nJasmine.prototype.stopSpecOnExpectationFailure = function(value) {\\n this.env.configure({oneFailurePerSpec: value});\\n};\\n\\nJasmine.prototype.stopOnSpecFailure = function(value) {\\n this.env.configure({failFast: value});\\n};\\n\\nJasmine.prototype.exitCodeCompletion = function(passed) {\\n var jasmineRunner = this;\\n var streams = [process.stdout, process.stderr];\\n var writesToWait = streams.length;\\n streams.forEach(function(stream) {\\n stream.write('', null, exitIfAllStreamsCompleted);\\n });\\n function exitIfAllStreamsCompleted() {\\n writesToWait--;\\n if (writesToWait === 0) {\\n if(passed) {\\n jasmineRunner.exit(0);\\n }\\n else {\\n jasmineRunner.exit(1);\\n }\\n }\\n }\\n};\\n\\nvar checkExit = function(jasmineRunner) {\\n return function() {\\n if (!jasmineRunner.completionReporter.isComplete()) {\\n process.exitCode = 4;\\n }\\n };\\n};\\n\\nJasmine.prototype.execute = function(files, filterString) {\\n this.completionReporter.exitHandler = this.checkExit;\\n\\n this.loadRequires();\\n this.loadHelpers();\\n if (!this.defaultReporterConfigured) {\\n this.configureDefaultReporter({ showColors: this.showingColors });\\n }\\n\\n if(filterString) {\\n var specFilter = new ConsoleSpecFilter({\\n filterString: filterString\\n });\\n this.env.configure({specFilter: function(spec) {\\n return specFilter.matches(spec.getFullName());\\n }});\\n }\\n\\n if (files && files.length > 0) {\\n this.specDir = '';\\n this.specFiles = [];\\n this.addSpecFiles(files);\\n }\\n\\n this.loadSpecs();\\n\\n this.addReporter(this.completionReporter);\\n this.env.execute();\\n};\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/jasmine/jasmine/jasmine.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/jasmine/jasmine/filters/console_spec_filter.js\":{\"text\":\"module.exports = exports = ConsoleSpecFilter;\\n\\nfunction ConsoleSpecFilter(options) {\\n var filterString = options && options.filterString;\\n var filterPattern = new RegExp(filterString);\\n\\n this.matches = function(specName) {\\n return filterPattern.test(specName);\\n };\\n}\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/jasmine/jasmine/filters/console_spec_filter.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/jasmine/jasmine/reporters/completion_reporter.js\":{\"text\":\"module.exports = function() {\\n var onCompleteCallback = function() {};\\n var completed = false;\\n\\n this.onComplete = function(callback) {\\n onCompleteCallback = callback;\\n };\\n\\n this.jasmineStarted = function() {\\n if (this.exitHandler) {\\n process.on('exit', this.exitHandler);\\n }\\n };\\n\\n this.jasmineDone = function(result) {\\n completed = true;\\n if (this.exitHandler) {\\n process.removeListener('exit', this.exitHandler);\\n }\\n\\n onCompleteCallback(result.overallStatus === 'passed');\\n };\\n\\n this.isComplete = function() {\\n return completed;\\n };\\n\\n this.exitHandler = null;\\n};\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/jasmine/jasmine/reporters/completion_reporter.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/jasmine/jasmine/reporters/console_reporter.js\":{\"text\":\"module.exports = exports = ConsoleReporter;\\n\\nvar noopTimer = {\\n start: function(){},\\n elapsed: function(){ return 0; }\\n};\\n\\nfunction ConsoleReporter() {\\n var print = function() {},\\n showColors = false,\\n timer = noopTimer,\\n jasmineCorePath = null,\\n specCount,\\n executableSpecCount,\\n failureCount,\\n failedSpecs = [],\\n pendingSpecs = [],\\n ansi = {\\n green: '\\\\x1B[32m',\\n red: '\\\\x1B[31m',\\n yellow: '\\\\x1B[33m',\\n none: '\\\\x1B[0m'\\n },\\n failedSuites = [],\\n stackFilter = defaultStackFilter;\\n\\n this.setOptions = function(options) {\\n if (options.print) {\\n print = options.print;\\n }\\n showColors = options.showColors || false;\\n if (options.timer) {\\n timer = options.timer;\\n }\\n if (options.jasmineCorePath) {\\n jasmineCorePath = options.jasmineCorePath;\\n }\\n if (options.stackFilter) {\\n stackFilter = options.stackFilter;\\n }\\n };\\n\\n this.jasmineStarted = function(options) {\\n specCount = 0;\\n executableSpecCount = 0;\\n failureCount = 0;\\n if (options && options.order && options.order.random) {\\n print('Randomized with seed ' + options.order.seed);\\n printNewline();\\n }\\n print('Started');\\n printNewline();\\n timer.start();\\n };\\n\\n this.jasmineDone = function(result) {\\n printNewline();\\n printNewline();\\n if(failedSpecs.length > 0) {\\n print('Failures:');\\n }\\n for (var i = 0; i < failedSpecs.length; i++) {\\n specFailureDetails(failedSpecs[i], i + 1);\\n }\\n\\n for(i = 0; i < failedSuites.length; i++) {\\n suiteFailureDetails(failedSuites[i]);\\n }\\n\\n if (result && result.failedExpectations && result.failedExpectations.length > 0) {\\n suiteFailureDetails(result);\\n }\\n\\n if (pendingSpecs.length > 0) {\\n print(\\\"Pending:\\\");\\n }\\n for(i = 0; i < pendingSpecs.length; i++) {\\n pendingSpecDetails(pendingSpecs[i], i + 1);\\n }\\n\\n if(specCount > 0) {\\n printNewline();\\n\\n if(executableSpecCount !== specCount) {\\n print('Ran ' + executableSpecCount + ' of ' + specCount + plural(' spec', specCount));\\n printNewline();\\n }\\n var specCounts = executableSpecCount + ' ' + plural('spec', executableSpecCount) + ', ' +\\n failureCount + ' ' + plural('failure', failureCount);\\n\\n if (pendingSpecs.length) {\\n specCounts += ', ' + pendingSpecs.length + ' pending ' + plural('spec', pendingSpecs.length);\\n }\\n\\n print(specCounts);\\n } else {\\n print('No specs found');\\n }\\n\\n printNewline();\\n var seconds = timer.elapsed() / 1000;\\n print('Finished in ' + seconds + ' ' + plural('second', seconds));\\n printNewline();\\n\\n if (result && result.overallStatus === 'incomplete') {\\n print('Incomplete: ' + result.incompleteReason);\\n printNewline();\\n }\\n\\n if (result && result.order && result.order.random) {\\n print('Randomized with seed ' + result.order.seed);\\n print(' (jasmine --random=true --seed=' + result.order.seed + ')');\\n printNewline();\\n }\\n };\\n\\n this.specDone = function(result) {\\n specCount++;\\n\\n if (result.status == 'pending') {\\n pendingSpecs.push(result);\\n executableSpecCount++;\\n print(colored('yellow', '*'));\\n return;\\n }\\n\\n if (result.status == 'passed') {\\n executableSpecCount++;\\n print(colored('green', '.'));\\n return;\\n }\\n\\n if (result.status == 'failed') {\\n failureCount++;\\n failedSpecs.push(result);\\n executableSpecCount++;\\n print(colored('red', 'F'));\\n }\\n };\\n\\n this.suiteDone = function(result) {\\n if (result.failedExpectations && result.failedExpectations.length > 0) {\\n failureCount++;\\n failedSuites.push(result);\\n }\\n };\\n\\n return this;\\n\\n function printNewline() {\\n print('\\\\n');\\n }\\n\\n function colored(color, str) {\\n return showColors ? (ansi[color] + str + ansi.none) : str;\\n }\\n\\n function plural(str, count) {\\n return count == 1 ? str : str + 's';\\n }\\n\\n function repeat(thing, times) {\\n var arr = [];\\n for (var i = 0; i < times; i++) {\\n arr.push(thing);\\n }\\n return arr;\\n }\\n\\n function indent(str, spaces) {\\n var lines = (str || '').split('\\\\n');\\n var newArr = [];\\n for (var i = 0; i < lines.length; i++) {\\n newArr.push(repeat(' ', spaces).join('') + lines[i]);\\n }\\n return newArr.join('\\\\n');\\n }\\n\\n function defaultStackFilter(stack) {\\n if (!stack) {\\n return '';\\n }\\n\\n var filteredStack = stack.split('\\\\n').filter(function(stackLine) {\\n return stackLine.indexOf(jasmineCorePath) === -1;\\n }).join('\\\\n');\\n return filteredStack;\\n }\\n\\n function specFailureDetails(result, failedSpecNumber) {\\n printNewline();\\n print(failedSpecNumber + ') ');\\n print(result.fullName);\\n printFailedExpectations(result);\\n }\\n\\n function suiteFailureDetails(result) {\\n printNewline();\\n print('Suite error: ' + result.fullName);\\n printFailedExpectations(result);\\n }\\n\\n function printFailedExpectations(result) {\\n for (var i = 0; i < result.failedExpectations.length; i++) {\\n var failedExpectation = result.failedExpectations[i];\\n printNewline();\\n print(indent('Message:', 2));\\n printNewline();\\n print(colored('red', indent(failedExpectation.message, 4)));\\n printNewline();\\n print(indent('Stack:', 2));\\n printNewline();\\n print(indent(stackFilter(failedExpectation.stack), 4));\\n }\\n\\n printNewline();\\n }\\n\\n function pendingSpecDetails(result, pendingSpecNumber) {\\n printNewline();\\n printNewline();\\n print(pendingSpecNumber + ') ');\\n print(result.fullName);\\n printNewline();\\n var pendingReason = \\\"No reason given\\\";\\n if (result.pendingReason && result.pendingReason !== '') {\\n pendingReason = result.pendingReason;\\n }\\n print(indent(colored('yellow', pendingReason), 2));\\n printNewline();\\n }\\n}\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/jasmine/jasmine/reporters/console_reporter.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/jasmine/jasmine-core/jasmine-core.js\":{\"text\":\"module.exports = require(\\\"./jasmine-core/jasmine.js\\\");\\nmodule.exports.boot = require('./jasmine-core/node_boot.js');\\n\\nvar path = require('path'),\\n fs = require('fs');\\n\\nvar rootPath = path.join(__dirname, \\\"jasmine-core\\\"),\\n bootFiles = ['boot.js'],\\n nodeBootFiles = ['node_boot.js'],\\n cssFiles = [],\\n jsFiles = [],\\n jsFilesToSkip = ['jasmine.js'].concat(bootFiles, nodeBootFiles);\\n\\nfs.readdirSync(rootPath).forEach(function(file) {\\n if(fs.statSync(path.join(rootPath, file)).isFile()) {\\n switch(path.extname(file)) {\\n case '.css':\\n cssFiles.push(file);\\n break;\\n case '.js':\\n if (jsFilesToSkip.indexOf(file) < 0) {\\n jsFiles.push(file);\\n }\\n break;\\n }\\n }\\n});\\n\\nmodule.exports.files = {\\n path: rootPath,\\n bootDir: rootPath,\\n bootFiles: bootFiles,\\n nodeBootFiles: nodeBootFiles,\\n cssFiles: cssFiles,\\n jsFiles: ['jasmine.js'].concat(jsFiles),\\n imagesDir: path.join(__dirname, '../images')\\n};\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/jasmine/jasmine-core/jasmine-core.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/jasmine/jasmine-core/jasmine-core/boot.js\":{\"text\":\"/*\\nCopyright (c) 2008-2019 Pivotal Labs\\n\\nPermission is hereby granted, free of charge, to any person obtaining\\na copy of this software and associated documentation files (the\\n\\\"Software\\\"), to deal in the Software without restriction, including\\nwithout limitation the rights to use, copy, modify, merge, publish,\\ndistribute, sublicense, and/or sell copies of the Software, and to\\npermit persons to whom the Software is furnished to do so, subject to\\nthe following conditions:\\n\\nThe above copyright notice and this permission notice shall be\\nincluded in all copies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND,\\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\\n*/\\n/**\\n Starting with version 2.0, this file \\\"boots\\\" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js` and `jasmine_html.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project.\\n\\n If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms.\\n\\n The location of `boot.js` can be specified and/or overridden in `jasmine.yml`.\\n\\n [jasmine-gem]: http://github.com/pivotal/jasmine-gem\\n */\\n\\n(function() {\\n\\n /**\\n * ## Require & Instantiate\\n *\\n * Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference.\\n */\\n window.jasmine = jasmineRequire.core(jasmineRequire);\\n\\n /**\\n * Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference.\\n */\\n jasmineRequire.html(jasmine);\\n\\n /**\\n * Create the Jasmine environment. This is used to run all specs in a project.\\n */\\n var env = jasmine.getEnv();\\n\\n /**\\n * ## The Global Interface\\n *\\n * Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged.\\n */\\n var jasmineInterface = jasmineRequire.interface(jasmine, env);\\n\\n /**\\n * Add all of the Jasmine global/public interface to the global scope, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`.\\n */\\n extend(window, jasmineInterface);\\n\\n /**\\n * ## Runner Parameters\\n *\\n * More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface.\\n */\\n\\n var queryString = new jasmine.QueryString({\\n getWindowLocation: function() { return window.location; }\\n });\\n\\n var filterSpecs = !!queryString.getParam(\\\"spec\\\");\\n\\n var config = {\\n failFast: queryString.getParam(\\\"failFast\\\"),\\n oneFailurePerSpec: queryString.getParam(\\\"oneFailurePerSpec\\\"),\\n hideDisabled: queryString.getParam(\\\"hideDisabled\\\")\\n };\\n\\n var random = queryString.getParam(\\\"random\\\");\\n\\n if (random !== undefined && random !== \\\"\\\") {\\n config.random = random;\\n }\\n\\n var seed = queryString.getParam(\\\"seed\\\");\\n if (seed) {\\n config.seed = seed;\\n }\\n\\n /**\\n * ## Reporters\\n * The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any).\\n */\\n var htmlReporter = new jasmine.HtmlReporter({\\n env: env,\\n navigateWithNewParam: function(key, value) { return queryString.navigateWithNewParam(key, value); },\\n addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); },\\n getContainer: function() { return document.body; },\\n createElement: function() { return document.createElement.apply(document, arguments); },\\n createTextNode: function() { return document.createTextNode.apply(document, arguments); },\\n timer: new jasmine.Timer(),\\n filterSpecs: filterSpecs\\n });\\n\\n /**\\n * The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results from JavaScript.\\n */\\n env.addReporter(jasmineInterface.jsApiReporter);\\n env.addReporter(htmlReporter);\\n\\n /**\\n * Filter which specs will be run by matching the start of the full name against the `spec` query param.\\n */\\n var specFilter = new jasmine.HtmlSpecFilter({\\n filterString: function() { return queryString.getParam(\\\"spec\\\"); }\\n });\\n\\n config.specFilter = function(spec) {\\n return specFilter.matches(spec.getFullName());\\n };\\n\\n env.configure(config);\\n\\n /**\\n * Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack.\\n */\\n window.setTimeout = window.setTimeout;\\n window.setInterval = window.setInterval;\\n window.clearTimeout = window.clearTimeout;\\n window.clearInterval = window.clearInterval;\\n\\n /**\\n * ## Execution\\n *\\n * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded.\\n */\\n var currentWindowOnload = window.onload;\\n\\n window.onload = function() {\\n if (currentWindowOnload) {\\n currentWindowOnload();\\n }\\n htmlReporter.initialize();\\n env.execute();\\n };\\n\\n /**\\n * Helper function for readability above.\\n */\\n function extend(destination, source) {\\n for (var property in source) destination[property] = source[property];\\n return destination;\\n }\\n\\n}());\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/jasmine/jasmine-core/jasmine-core/boot.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/jasmine/jasmine-core/jasmine-core/jasmine-html.js\":{\"text\":\"/*\\nCopyright (c) 2008-2019 Pivotal Labs\\n\\nPermission is hereby granted, free of charge, to any person obtaining\\na copy of this software and associated documentation files (the\\n\\\"Software\\\"), to deal in the Software without restriction, including\\nwithout limitation the rights to use, copy, modify, merge, publish,\\ndistribute, sublicense, and/or sell copies of the Software, and to\\npermit persons to whom the Software is furnished to do so, subject to\\nthe following conditions:\\n\\nThe above copyright notice and this permission notice shall be\\nincluded in all copies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND,\\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\\n*/\\njasmineRequire.html = function(j$) {\\n j$.ResultsNode = jasmineRequire.ResultsNode();\\n j$.HtmlReporter = jasmineRequire.HtmlReporter(j$);\\n j$.QueryString = jasmineRequire.QueryString();\\n j$.HtmlSpecFilter = jasmineRequire.HtmlSpecFilter();\\n};\\n\\njasmineRequire.HtmlReporter = function(j$) {\\n function ResultsStateBuilder() {\\n this.topResults = new j$.ResultsNode({}, '', null);\\n this.currentParent = this.topResults;\\n this.specsExecuted = 0;\\n this.failureCount = 0;\\n this.pendingSpecCount = 0;\\n }\\n\\n ResultsStateBuilder.prototype.suiteStarted = function(result) {\\n this.currentParent.addChild(result, 'suite');\\n this.currentParent = this.currentParent.last();\\n };\\n\\n ResultsStateBuilder.prototype.suiteDone = function(result) {\\n this.currentParent.updateResult(result);\\n if (this.currentParent !== this.topResults) {\\n this.currentParent = this.currentParent.parent;\\n }\\n\\n if (result.status === 'failed') {\\n this.failureCount++;\\n }\\n };\\n\\n ResultsStateBuilder.prototype.specStarted = function(result) {\\n };\\n\\n ResultsStateBuilder.prototype.specDone = function(result) {\\n this.currentParent.addChild(result, 'spec');\\n\\n if (result.status !== 'excluded') {\\n this.specsExecuted++;\\n }\\n\\n if (result.status === 'failed') {\\n this.failureCount++;\\n }\\n\\n if (result.status == 'pending') {\\n this.pendingSpecCount++;\\n }\\n };\\n\\n\\n\\n function HtmlReporter(options) {\\n var config = function() { return (options.env && options.env.configuration()) || {}; },\\n getContainer = options.getContainer,\\n createElement = options.createElement,\\n createTextNode = options.createTextNode,\\n navigateWithNewParam = options.navigateWithNewParam || function() {},\\n addToExistingQueryString = options.addToExistingQueryString || defaultQueryString,\\n filterSpecs = options.filterSpecs,\\n timer = options.timer || j$.noopTimer,\\n htmlReporterMain,\\n symbols,\\n deprecationWarnings = [];\\n\\n this.initialize = function() {\\n clearPrior();\\n htmlReporterMain = createDom('div', {className: 'jasmine_html-reporter'},\\n createDom('div', {className: 'jasmine-banner'},\\n createDom('a', {className: 'jasmine-title', href: 'http://jasmine.github.io/', target: '_blank'}),\\n createDom('span', {className: 'jasmine-version'}, j$.version)\\n ),\\n createDom('ul', {className: 'jasmine-symbol-summary'}),\\n createDom('div', {className: 'jasmine-alert'}),\\n createDom('div', {className: 'jasmine-results'},\\n createDom('div', {className: 'jasmine-failures'})\\n )\\n );\\n getContainer().appendChild(htmlReporterMain);\\n };\\n\\n var totalSpecsDefined;\\n this.jasmineStarted = function(options) {\\n totalSpecsDefined = options.totalSpecsDefined || 0;\\n timer.start();\\n };\\n\\n var summary = createDom('div', {className: 'jasmine-summary'});\\n\\n var stateBuilder = new ResultsStateBuilder();\\n\\n this.suiteStarted = function(result) {\\n stateBuilder.suiteStarted(result);\\n };\\n\\n this.suiteDone = function(result) {\\n stateBuilder.suiteDone(result);\\n\\n if (result.status === 'failed') {\\n failures.push(failureDom(result));\\n }\\n addDeprecationWarnings(result);\\n };\\n\\n this.specStarted = function(result) {\\n stateBuilder.specStarted(result);\\n };\\n\\n var failures = [];\\n this.specDone = function(result) {\\n stateBuilder.specDone(result);\\n\\n if(noExpectations(result) && typeof console !== 'undefined' && typeof console.error !== 'undefined') {\\n console.error('Spec \\\\'' + result.fullName + '\\\\' has no expectations.');\\n }\\n\\n if (!symbols){\\n symbols = find('.jasmine-symbol-summary');\\n }\\n\\n symbols.appendChild(createDom('li', {\\n className: this.displaySpecInCorrectFormat(result),\\n id: 'spec_' + result.id,\\n title: result.fullName\\n }\\n ));\\n\\n if (result.status === 'failed') {\\n failures.push(failureDom(result));\\n }\\n\\n addDeprecationWarnings(result);\\n };\\n\\n this.displaySpecInCorrectFormat = function(result) {\\n return noExpectations(result) ? 'jasmine-empty' : this.resultStatus(result.status);\\n };\\n\\n this.resultStatus = function(status) {\\n if(status === 'excluded') {\\n return config().hideDisabled ? 'jasmine-excluded-no-display' : 'jasmine-excluded';\\n }\\n return 'jasmine-' + status;\\n };\\n\\n this.jasmineDone = function(doneResult) {\\n var banner = find('.jasmine-banner');\\n var alert = find('.jasmine-alert');\\n var order = doneResult && doneResult.order;\\n var i;\\n alert.appendChild(createDom('span', {className: 'jasmine-duration'}, 'finished in ' + timer.elapsed() / 1000 + 's'));\\n\\n banner.appendChild(optionsMenu(config()));\\n\\n if (stateBuilder.specsExecuted < totalSpecsDefined) {\\n var skippedMessage = 'Ran ' + stateBuilder.specsExecuted + ' of ' + totalSpecsDefined + ' specs - run all';\\n var skippedLink = addToExistingQueryString('spec', '');\\n alert.appendChild(\\n createDom('span', {className: 'jasmine-bar jasmine-skipped'},\\n createDom('a', {href: skippedLink, title: 'Run all specs'}, skippedMessage)\\n )\\n );\\n }\\n var statusBarMessage = '';\\n var statusBarClassName = 'jasmine-overall-result jasmine-bar ';\\n var globalFailures = (doneResult && doneResult.failedExpectations) || [];\\n var failed = stateBuilder.failureCount + globalFailures.length > 0;\\n\\n if (totalSpecsDefined > 0 || failed) {\\n statusBarMessage += pluralize('spec', stateBuilder.specsExecuted) + ', ' + pluralize('failure', stateBuilder.failureCount);\\n if (stateBuilder.pendingSpecCount) { statusBarMessage += ', ' + pluralize('pending spec', stateBuilder.pendingSpecCount); }\\n }\\n\\n if (doneResult.overallStatus === 'passed') {\\n statusBarClassName += ' jasmine-passed ';\\n } else if (doneResult.overallStatus === 'incomplete') {\\n statusBarClassName += ' jasmine-incomplete ';\\n statusBarMessage = 'Incomplete: ' + doneResult.incompleteReason + ', ' + statusBarMessage;\\n } else {\\n statusBarClassName += ' jasmine-failed ';\\n }\\n\\n var seedBar;\\n if (order && order.random) {\\n seedBar = createDom('span', {className: 'jasmine-seed-bar'},\\n ', randomized with seed ',\\n createDom('a', {title: 'randomized with seed ' + order.seed, href: seedHref(order.seed)}, order.seed)\\n );\\n }\\n\\n alert.appendChild(createDom('span', {className: statusBarClassName}, statusBarMessage, seedBar));\\n\\n var errorBarClassName = 'jasmine-bar jasmine-errored';\\n var afterAllMessagePrefix = 'AfterAll ';\\n\\n for(i = 0; i < globalFailures.length; i++) {\\n alert.appendChild(createDom('span', {className: errorBarClassName}, globalFailureMessage(globalFailures[i])));\\n }\\n\\n function globalFailureMessage(failure) {\\n if (failure.globalErrorType === 'load') {\\n var prefix = 'Error during loading: ' + failure.message;\\n\\n if (failure.filename) {\\n return prefix + ' in ' + failure.filename + ' line ' + failure.lineno;\\n } else {\\n return prefix;\\n }\\n } else {\\n return afterAllMessagePrefix + failure.message;\\n }\\n }\\n\\n addDeprecationWarnings(doneResult);\\n\\n var warningBarClassName = 'jasmine-bar jasmine-warning';\\n for(i = 0; i < deprecationWarnings.length; i++) {\\n var warning = deprecationWarnings[i];\\n alert.appendChild(createDom('span', {className: warningBarClassName}, 'DEPRECATION: ' + warning));\\n }\\n\\n var results = find('.jasmine-results');\\n results.appendChild(summary);\\n\\n summaryList(stateBuilder.topResults, summary);\\n\\n if (failures.length) {\\n alert.appendChild(\\n createDom('span', {className: 'jasmine-menu jasmine-bar jasmine-spec-list'},\\n createDom('span', {}, 'Spec List | '),\\n createDom('a', {className: 'jasmine-failures-menu', href: '#'}, 'Failures')));\\n alert.appendChild(\\n createDom('span', {className: 'jasmine-menu jasmine-bar jasmine-failure-list'},\\n createDom('a', {className: 'jasmine-spec-list-menu', href: '#'}, 'Spec List'),\\n createDom('span', {}, ' | Failures ')));\\n\\n find('.jasmine-failures-menu').onclick = function() {\\n setMenuModeTo('jasmine-failure-list');\\n };\\n find('.jasmine-spec-list-menu').onclick = function() {\\n setMenuModeTo('jasmine-spec-list');\\n };\\n\\n setMenuModeTo('jasmine-failure-list');\\n\\n var failureNode = find('.jasmine-failures');\\n for (i = 0; i < failures.length; i++) {\\n failureNode.appendChild(failures[i]);\\n }\\n }\\n };\\n\\n return this;\\n\\n function failureDom(result) {\\n var failure =\\n createDom('div', {className: 'jasmine-spec-detail jasmine-failed'},\\n failureDescription(result, stateBuilder.currentParent),\\n createDom('div', {className: 'jasmine-messages'})\\n );\\n var messages = failure.childNodes[1];\\n\\n for (var i = 0; i < result.failedExpectations.length; i++) {\\n var expectation = result.failedExpectations[i];\\n messages.appendChild(createDom('div', {className: 'jasmine-result-message'}, expectation.message));\\n messages.appendChild(createDom('div', {className: 'jasmine-stack-trace'}, expectation.stack));\\n }\\n\\n return failure;\\n }\\n\\n function summaryList(resultsTree, domParent) {\\n var specListNode;\\n for (var i = 0; i < resultsTree.children.length; i++) {\\n var resultNode = resultsTree.children[i];\\n if (filterSpecs && !hasActiveSpec(resultNode)) {\\n continue;\\n }\\n if (resultNode.type === 'suite') {\\n var suiteListNode = createDom('ul', {className: 'jasmine-suite', id: 'suite-' + resultNode.result.id},\\n createDom('li', {className: 'jasmine-suite-detail jasmine-' + resultNode.result.status},\\n createDom('a', {href: specHref(resultNode.result)}, resultNode.result.description)\\n )\\n );\\n\\n summaryList(resultNode, suiteListNode);\\n domParent.appendChild(suiteListNode);\\n }\\n if (resultNode.type === 'spec') {\\n if (domParent.getAttribute('class') !== 'jasmine-specs') {\\n specListNode = createDom('ul', {className: 'jasmine-specs'});\\n domParent.appendChild(specListNode);\\n }\\n var specDescription = resultNode.result.description;\\n if(noExpectations(resultNode.result)) {\\n specDescription = 'SPEC HAS NO EXPECTATIONS ' + specDescription;\\n }\\n if(resultNode.result.status === 'pending' && resultNode.result.pendingReason !== '') {\\n specDescription = specDescription + ' PENDING WITH MESSAGE: ' + resultNode.result.pendingReason;\\n }\\n specListNode.appendChild(\\n createDom('li', {\\n className: 'jasmine-' + resultNode.result.status,\\n id: 'spec-' + resultNode.result.id\\n },\\n createDom('a', {href: specHref(resultNode.result)}, specDescription)\\n )\\n );\\n }\\n }\\n }\\n\\n function optionsMenu(config) {\\n var optionsMenuDom = createDom('div', { className: 'jasmine-run-options' },\\n createDom('span', { className: 'jasmine-trigger' }, 'Options'),\\n createDom('div', { className: 'jasmine-payload' },\\n createDom('div', { className: 'jasmine-stop-on-failure' },\\n createDom('input', {\\n className: 'jasmine-fail-fast',\\n id: 'jasmine-fail-fast',\\n type: 'checkbox'\\n }),\\n createDom('label', { className: 'jasmine-label', 'for': 'jasmine-fail-fast' }, 'stop execution on spec failure')),\\n createDom('div', { className: 'jasmine-throw-failures' },\\n createDom('input', {\\n className: 'jasmine-throw',\\n id: 'jasmine-throw-failures',\\n type: 'checkbox'\\n }),\\n createDom('label', { className: 'jasmine-label', 'for': 'jasmine-throw-failures' }, 'stop spec on expectation failure')),\\n createDom('div', { className: 'jasmine-random-order' },\\n createDom('input', {\\n className: 'jasmine-random',\\n id: 'jasmine-random-order',\\n type: 'checkbox'\\n }),\\n createDom('label', { className: 'jasmine-label', 'for': 'jasmine-random-order' }, 'run tests in random order')),\\n createDom('div', { className: 'jasmine-hide-disabled' },\\n createDom('input', {\\n className: 'jasmine-disabled',\\n id: 'jasmine-hide-disabled',\\n type: 'checkbox'\\n }),\\n createDom('label', { className: 'jasmine-label', 'for': 'jasmine-hide-disabled' }, 'hide disabled tests'))\\n )\\n );\\n\\n var failFastCheckbox = optionsMenuDom.querySelector('#jasmine-fail-fast');\\n failFastCheckbox.checked = config.failFast;\\n failFastCheckbox.onclick = function() {\\n navigateWithNewParam('failFast', !config.failFast);\\n };\\n\\n var throwCheckbox = optionsMenuDom.querySelector('#jasmine-throw-failures');\\n throwCheckbox.checked = config.oneFailurePerSpec;\\n throwCheckbox.onclick = function() {\\n navigateWithNewParam('throwFailures', !config.oneFailurePerSpec);\\n };\\n\\n var randomCheckbox = optionsMenuDom.querySelector('#jasmine-random-order');\\n randomCheckbox.checked = config.random;\\n randomCheckbox.onclick = function() {\\n navigateWithNewParam('random', !config.random);\\n };\\n\\n var hideDisabled = optionsMenuDom.querySelector('#jasmine-hide-disabled');\\n hideDisabled.checked = config.hideDisabled;\\n hideDisabled.onclick = function() {\\n navigateWithNewParam('hideDisabled', !config.hideDisabled);\\n };\\n\\n var optionsTrigger = optionsMenuDom.querySelector('.jasmine-trigger'),\\n optionsPayload = optionsMenuDom.querySelector('.jasmi