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() {
suiteNode.appendChild(warningNode);
this._xml.appendChild(suiteNode);
}.bind(this));
this._xml.setAttribute('duration', utils.ms2seconds(this.results.calculateDuration()));
this._xml.setAttribute('time', utils.ms2seconds(this.results.calculateDuration()));
return this._xml;
};
......
......@@ -29,7 +29,7 @@ casper.test.begin('XUnitReporter() can hold test suites', 4, function suite(test
test.assertEvalEquals(function() {
return __utils__.findAll('testsuite').length;
}, 2);
test.assertExists('testsuites[duration]');
test.assertExists('testsuites[time]');
test.assertExists('testsuite[name="foo"][package="foo"]');
test.assertExists('testsuite[name="bar"][package="bar"]');
test.done();
......