Tutorial M - Manual tests

Manual tests are only run if 'manual' is specified as part of the test argument, i.e., -test-manual=tutorial_m to run the tests in the tutorialm.ot file.

The 'manual "question";' modifier to a test causes a dialog to pop up once the test has been run, with a question presented to the user. The user must then select yes or no to indicate whether or not the test is successfull or if it failed.

group "tutorial_m";

// Some basic manual tests, just to show how to do them.
test( "manual 1" )  
   manual "Are you there?";   
{}

html
{
 //! <font color=darkred>dark red</font><br/>
 //! <font color=darkgreen>dark green</font>
}

// manual(X,Y) is an alternate shorthand syntax for test(X) manual Y; {}
manual( "<font color>", "Does the text match the colors?");
Expected output, if the user answers yes to both questions
=========================================================================
Opera Testsuite
=========================================================================

=========================================================================
/home/ph/src/opera-oom2/modules/selftest/documentation/tutorial/tutorialm.ot(1):  tutorial_m 
=========================================================================
  manual 1 ...................................................... Passed
  <font color> .................................................. Passed
=========================================================================
2 tests run, 0 tests failed, 0 tests skipped, 2 tests OK
=========================================================================
Expected output, when run without test-manual:
=========================================================================
/home/ph/src/opera-oom2/modules/selftest/documentation/tutorial/tutorialm.ot(1):  tutorial_m 
=========================================================================
  manual 1 ...................................................... Skipped (manual)
  <font color> .................................................. Skipped (manual)
=========================================================================