Skip to content

Commit

Permalink
Merge pull request #98 from shvydky/master
Browse files Browse the repository at this point in the history
closed #95
  • Loading branch information
devnixs authored Jan 6, 2017
2 parents e681547 + 0087d88 commit 2f10c38
Show file tree
Hide file tree
Showing 8 changed files with 1,101 additions and 873 deletions.
2 changes: 1 addition & 1 deletion .grunt/grunt-contrib-jasmine/boot.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2015 Pivotal Labs
Copyright (c) 2008-2016 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
22 changes: 15 additions & 7 deletions .grunt/grunt-contrib-jasmine/jasmine-html.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2008-2015 Pivotal Labs
Copyright (c) 2008-2016 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -209,9 +209,10 @@ jasmineRequire.HtmlReporter = function(j$) {

if (specsExecuted < totalSpecsDefined) {
var skippedMessage = 'Ran ' + specsExecuted + ' of ' + totalSpecsDefined + ' specs - run all';
var skippedLink = order && order.random ? '?random=true' : '?';
alert.appendChild(
createDom('span', {className: 'jasmine-bar jasmine-skipped'},
createDom('a', {href: '?', title: 'Run all specs'}, skippedMessage)
createDom('a', {href: skippedLink, title: 'Run all specs'}, skippedMessage)
)
);
}
Expand All @@ -237,15 +238,22 @@ jasmineRequire.HtmlReporter = function(j$) {

alert.appendChild(createDom('span', {className: statusBarClassName}, statusBarMessage, seedBar));

for(i = 0; i < failedSuites.length; i++) {
var errorBarClassName = 'jasmine-bar jasmine-errored';
var errorBarMessagePrefix = 'AfterAll ';

for(var i = 0; i < failedSuites.length; i++) {
var failedSuite = failedSuites[i];
for(var j = 0; j < failedSuite.failedExpectations.length; j++) {
var errorBarMessage = 'AfterAll ' + failedSuite.failedExpectations[j].message;
var errorBarClassName = 'jasmine-bar jasmine-errored';
alert.appendChild(createDom('span', {className: errorBarClassName}, errorBarMessage));
alert.appendChild(createDom('span', {className: errorBarClassName}, errorBarMessagePrefix + failedSuite.failedExpectations[j].message));
}
}

var globalFailures = (doneResult && doneResult.failedExpectations) || [];
for(i = 0; i < globalFailures.length; i++) {
var failure = globalFailures[i];
alert.appendChild(createDom('span', {className: errorBarClassName}, errorBarMessagePrefix + failure.message));
}

var results = find('.jasmine-results');
results.appendChild(summary);

Expand Down Expand Up @@ -309,7 +317,7 @@ jasmineRequire.HtmlReporter = function(j$) {
setMenuModeTo('jasmine-failure-list');

var failureNode = find('.jasmine-failures');
for (var i = 0; i < failures.length; i++) {
for (i = 0; i < failures.length; i++) {
failureNode.appendChild(failures[i]);
}
}
Expand Down
Loading

0 comments on commit 2f10c38

Please sign in to comment.