[FIX] phantomjs test: `phantom` variable is undefined inside page.
This commit is contained in:
parent
fa1842cb1d
commit
d8d9c7277e
|
@ -93,8 +93,8 @@ function PhantomTest() {
|
|||
"\nreferrer: " + document.referrer +
|
||||
"\n\n" + (document.body && document.body.innerHTML)).replace(/[^a-z0-9\s~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "*");
|
||||
console.log('error', message);
|
||||
phantom.exit(1);
|
||||
});
|
||||
phantom.exit(1);
|
||||
}, self.timeout);
|
||||
|
||||
// ----------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue