Commit b04b0ec7 b04b0ec75c3bb18e96cac5845bd473431a1280c3 by Nicolas Perriault

fixed edge case in xunit export

1 parent b8362f89
......@@ -7,6 +7,7 @@ XXXX-XX-XX, v1.0.1
- fixed [#336](https://github.com/n1k0/casperjs/issues/336) - Test result duration may have an exotic value
- Added `casper.mouse.doubleclick()`
- fixed [#343](https://github.com/n1k0/casperjs/issues/343) - Better script checks
- fixed an edge case with xunit export when `phantom.casperScript` may be not defined
2012-12-24, v1.0.0
------------------
......
Subproject commit 18b8cbb5335073eaf0d1cd9a7c1f1634e394aa4b
Subproject commit 15382045d8e080bcddc8a4101774b57dfed075a1
......
......@@ -45,7 +45,7 @@ var fs = require('fs');
function generateClassName(classname) {
"use strict";
classname = classname.replace(phantom.casperPath, "").trim();
var script = classname || phantom.casperScript;
var script = classname || phantom.casperScript || "";
if (script.indexOf(fs.workingDirectory) === 0) {
script = script.substring(fs.workingDirectory.length + 1);
}
......