Firebug/WeeklyUpdates/2008-09-02
< Firebug | WeeklyUpdates
Jump to navigation
Jump to search
- Unit Testing (jresig)
- Event Simulation (focus, click, key events)
- Code: http://github.com/jeresig/fireunit/tree/master
Install extension, go to: chrome://fireunit/content/test/commandline.html
var state = false;
fireunit.click( "fbStatusBar" );
fireunit.focus( "fbCommandLine" );
setTimeout(function(){
// Verify basic command execution
state = false;
fireunit.value( "fbCommandLine", "state = true;" );
fireunit.key( "fbCommandLine", 13 );
fireunit.ok( state, "Console command executed." );
// Trigger large console
//fireunit.type( "fbCommandLine", "alert('test');\n" );
}, 500);

