[FIX] tour.js: clear localStorage before testing; add a better log title

This commit is contained in:
Christophe Matthieu 2014-06-19 12:19:30 +02:00
parent 9f36a77b7b
commit 14e29ce321
2 changed files with 3 additions and 2 deletions

View File

@ -122,7 +122,7 @@ var Tour = {
if (tour.steps[index-1] &&
tour.steps[index-1].popover && tour.steps[index-1].popover.next) {
var step = {
_title: "",
_title: "close popover and finish",
id: index,
waitNot: '.popover.tour.fade.in:visible'
};
@ -365,7 +365,7 @@ var Tour = {
Tour.registerSteps(state.tour);
Tour.nextStep();
} else {
if (state.wait > 10) {
if (state.wait >= 10) {
Tour.error(state.step, "Tour '"+state.id+"' undefined");
}
Tour.saveState(state.id, state.mode, state.step_id, state.number-1, state.wait+1);

View File

@ -247,6 +247,7 @@
<t t-call="web.assets_backend"/>
<script type="text/javascript" id="qunit_config">
localStorage.clear();
QUnit.config.testTimeout = 5 * 60 * 1000;
QUnit.moduleDone(function(result) {
console.log(result.name + " (" + result.passed + "/" + result.total + " passed tests)");