Commit 414f83d2 414f83d2508a39b962a78b23d98e94d973db7cb6 by Nicolas Perriault

Merge pull request #681 from fwebdev/patch-1

Update xunit.js
2 parents 9e5a43ce 80bf93cb
...@@ -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();
......