Bumping built distribution

This commit is contained in:
Sheel Choksi
2014-06-27 22:19:44 -07:00
parent eb1bd25445
commit e1e49e8292
2 changed files with 14 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ jasmineRequire.HtmlReporter = function(j$) {
symbols;
this.initialize = function() {
clearPrior();
htmlReporterMain = createDom('div', {className: 'jasmine_html-reporter'},
createDom('div', {className: 'banner'},
createDom('a', {className: 'title', href: 'http://jasmine.github.io/', target: '_blank'}),
@@ -249,6 +250,15 @@ jasmineRequire.HtmlReporter = function(j$) {
return getContainer().querySelector('.jasmine_html-reporter ' + selector);
}
function clearPrior() {
// return the reporter
var oldReporter = find('');
if(oldReporter) {
getContainer().removeChild(oldReporter);
}
}
function createDom(type, attrs, childrenVarArgs) {
var el = createElement(type);

View File

@@ -687,6 +687,10 @@ getJasmineRequireObj().Env = function(j$) {
};
this.expect = function(actual) {
if (!currentSpec) {
throw new Error('\'expect\' was used when there was no current spec, this could be because an asynchronous test timed out');
}
return currentSpec.expect(actual);
};