Skip to content

Commit

Permalink
Adding some TODOs to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Apr 21, 2012
1 parent fe47d95 commit 8b3ab82
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/wrapper.js
@@ -1,7 +1,13 @@
/**
/*
Wrapper for PhantomJS and YUITest
*/

/*
TODO --
onError: Handle JS errors and throw a YUITest error
Timeout: Specify a timeout (override too) to kill a test
*/

var injectGetYUITest = function() {
window.TestResults = null;
window.getYUITest = function() {
Expand Down Expand Up @@ -95,6 +101,10 @@ var executeTest = function(file, cb) {
page.onAlert = function(msg) {
//console.log('[window.alert]', msg);
};
page.onError = function(msg, trace) {
//TODO
//Load this into a YUITest result to fail the test
};


//console.log('Opening File', file);
Expand Down

0 comments on commit 8b3ab82

Please sign in to comment.