make it easier to copy the title of a failing spec #295

Closed
wants to merge 1 commit into from
View
28 src/html/SpecView.js
@@ -7,19 +7,29 @@ jasmine.HtmlReporter.SpecView = function(spec, dom, views) {
this.dom.symbolSummary.appendChild(this.symbol);
this.summary = this.createDom('div', { className: 'specSummary' },
- this.createDom('a', {
- className: 'description',
- href: jasmine.HtmlReporter.sectionLink(this.spec.getFullName()),
- title: this.spec.getFullName()
- }, this.spec.description)
+ this.createDom('div', {
+ className: 'description'
+ },
+ this.createDom('a', {
+ href: jasmine.HtmlReporter.sectionLink(this.spec.getFullName()),
+ title: this.spec.getFullName()
+ },
+ this.spec.description
+ )
+ )
);
this.detail = this.createDom('div', { className: 'specDetail' },
+ this.createDom('div', {
+ className: 'description'
+ },
this.createDom('a', {
- className: 'description',
- href: '?spec=' + encodeURIComponent(this.spec.getFullName()),
- title: this.spec.getFullName()
- }, this.spec.getFullName())
+ href: '?spec=' + encodeURIComponent(this.spec.getFullName()),
+ title: this.spec.getFullName()
+ },
+ this.spec.getFullName()
+ )
+ )
);
};
View
5 src/html/_HTMLReporter.scss
@@ -277,11 +277,14 @@ body {
//line-height: $line-height * 2;
display: block;
- color: white;
background-color: $failing-color;
//font-size: $large-font-size;
}
+
+ .description a {
+ color: white;
+ }
}
}
View
2 src/version.js
@@ -3,5 +3,5 @@ jasmine.version_= {
"major": 1,
"minor": 2,
"build": 0,
- "revision": 1343710612
+ "revision": 1351872343
};