Changeset 745

Show
Ignore:
Timestamp:
07/23/07 17:17:48 (1 year ago)
Author:
kindlund
Message:

Updating unit tests.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/kindlund-firefox/t/honeyclient_agent_driver_browser_ff.t

    r742 r745  
    123123diag(""); 
    124124$question = prompt("# Did FF properly render the page and automatically exit?", "yes"); 
     125diag(""); 
    125126if ($question !~ /^y.*/i) { 
    126     diag(""); 
    127127    diag("Check your network connectivity and verify that you can manually browse this page in FF."); 
    128128    diag("Then, re-run these tests."); 
     129    diag(""); 
     130    diag("If the tests still do not work, please submit a ticket to:"); 
     131    diag("http://www.honeyclient.org/trac/newticket"); 
     132    diag(""); 
     133    fail("The drive() call failed."); 
     134} 
     135 
     136diag("About to restart FF.  Please check if the \"Restore Previous Session\" dialog box appears."); 
     137$question = prompt("# Pick another website for FF browse to:", "http://www.mitre.org"); 
     138$ie->drive(url => $question); 
     139 
     140diag(""); 
     141$question = prompt("# Did the \"Restore Previous Session\" dialog box appear?", "yes"); 
     142diag(""); 
     143if ($question !~ /^n.*/i) { 
     144    diag("You will need to disable the \"Restore Previous Session\" dialog box manually in Firefox."); 
     145    diag("Here's how:"); 
     146    diag("1) Start up Firefox manually."); 
     147    diag("2) Go to 'about:config'."); 
     148    diag("3) Change the 'browser.sessionstore.resume_from_crash' value to 'false'."); 
     149    diag("4) Re-run these tests."); 
    129150    diag(""); 
    130151    diag("If the tests still do not work, please submit a ticket to:");