This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move debugPage code into a template file remove debug logging code move underscore from devDependencies to dependencies switch from underscore library to lodash
- Loading branch information
Showing
4 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var system = require('system'), | ||
fs = require('fs'), | ||
webpage = require('webpage'); | ||
|
||
(function (phantom) { | ||
var page = webpage.create(); | ||
|
||
function debugPage() { | ||
console.log('Launch the debugger page at http://localhost:9000/webkit/inspector/inspector.html?page=2'); | ||
|
||
var debuggerWait = 15000; | ||
console.log('Waiting ' + (debuggerWait / 1000) + ' seconds for debugger page to launch...'); | ||
|
||
var launchPage = function () { | ||
console.log('Launching page <%= url %>...'); | ||
page.open('<%= url %>'); | ||
}; | ||
|
||
setTimeout(launchPage, 15000); | ||
} | ||
debugPage(); | ||
}(phantom)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters