mirror of https://github.com/vitalif/phantomjs
Remove unnecessary console redirection.
parent
f7ca056f1f
commit
9931279ccc
|
@ -2,9 +2,6 @@
|
|||
|
||||
page = new WebPage()
|
||||
|
||||
page.onConsoleMessage = (msg) ->
|
||||
console.log(msg);
|
||||
|
||||
page.open 'http://www.google.com/m/local?site=local&q=pizza+in+new+york',
|
||||
(status) ->
|
||||
if status isnt 'success'
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
|
||||
var page = new WebPage();
|
||||
|
||||
page.onConsoleMessage = function (msg) {
|
||||
console.log(msg);
|
||||
};
|
||||
|
||||
page.open('http://www.google.com/m/local?site=local&q=pizza+in+new+york', function (status) {
|
||||
if (status !== 'success') {
|
||||
console.log('Unable to access network');
|
||||
|
|
|
@ -32,10 +32,6 @@ waitFor = (testFx, onReady, timeOutMillis=3000) ->
|
|||
|
||||
page = new WebPage()
|
||||
|
||||
# Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this")
|
||||
page.onConsoleMessage = (msg) ->
|
||||
console.log msg
|
||||
|
||||
# Open Twitter on 'sencha' profile and, onPageLoad, do...
|
||||
page.open 'http://twitter.com/#!/sencha', (status) ->
|
||||
# Check for page load success
|
||||
|
|
|
@ -36,11 +36,6 @@ function waitFor(testFx, onReady, timeOutMillis) {
|
|||
|
||||
var page = new WebPage();
|
||||
|
||||
// Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this")
|
||||
page.onConsoleMessage = function(msg) {
|
||||
console.log(msg);
|
||||
};
|
||||
|
||||
// Open Twitter on 'sencha' profile and, onPageLoad, do...
|
||||
page.open("http://twitter.com/#!/sencha", function (status) {
|
||||
// Check for page load success
|
||||
|
|
Loading…
Reference in New Issue