Merge pull request #681 from fwebdev/patch-1
Update xunit.js
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -153,7 +153,7 @@ XUnitExporter.prototype.getXML = function getXML() { | ... | @@ -153,7 +153,7 @@ XUnitExporter.prototype.getXML = function getXML() { |
153 | suiteNode.appendChild(warningNode); | 153 | suiteNode.appendChild(warningNode); |
154 | this._xml.appendChild(suiteNode); | 154 | this._xml.appendChild(suiteNode); |
155 | }.bind(this)); | 155 | }.bind(this)); |
156 | this._xml.setAttribute('duration', utils.ms2seconds(this.results.calculateDuration())); | 156 | this._xml.setAttribute('time', utils.ms2seconds(this.results.calculateDuration())); |
157 | return this._xml; | 157 | return this._xml; |
158 | }; | 158 | }; |
159 | 159 | ... | ... |
... | @@ -29,7 +29,7 @@ casper.test.begin('XUnitReporter() can hold test suites', 4, function suite(test | ... | @@ -29,7 +29,7 @@ casper.test.begin('XUnitReporter() can hold test suites', 4, function suite(test |
29 | test.assertEvalEquals(function() { | 29 | test.assertEvalEquals(function() { |
30 | return __utils__.findAll('testsuite').length; | 30 | return __utils__.findAll('testsuite').length; |
31 | }, 2); | 31 | }, 2); |
32 | test.assertExists('testsuites[duration]'); | 32 | test.assertExists('testsuites[time]'); |
33 | test.assertExists('testsuite[name="foo"][package="foo"]'); | 33 | test.assertExists('testsuite[name="foo"][package="foo"]'); |
34 | test.assertExists('testsuite[name="bar"][package="bar"]'); | 34 | test.assertExists('testsuite[name="bar"][package="bar"]'); |
35 | test.done(); | 35 | test.done(); | ... | ... |
-
Please register or sign in to post a comment