[FIX] test phantomjs clear localstorage before running tests

This commit is contained in:
Antony Lesuisse 2014-06-30 16:32:02 +02:00
parent 63d8fc6e8c
commit 3bb7866384
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ function PhantomTest() {
phantom.exit(1);
} else {
console.log('loaded', url, status);
// clear localstorage leftovers
self.page.evaluate(function () { localStorage.clear() });
// process ready
waitFor(function() {
console.log("PhantomTest.run: wait for condition:", ready);