Remove unnecessary console redirection.

1.2
Ariya Hidayat 2011-06-19 15:28:58 -07:00
parent f7ca056f1f
commit 9931279ccc
4 changed files with 0 additions and 16 deletions

View File

@ -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'

View File

@ -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');

View File

@ -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

View File

@ -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