<?xml version="1.0" encoding="utf-8" ?>

<!-- This XML file is used to define your "rules" and messages and/or
     actions to take based on the result of each rule. In addition you
     can specify optional configuration such as renaming columns in
     the pass/fail table and relabeling what is shown for Pass, Fail,
     etc (for example, displaying "Please fix" instead of "Fail" in
     the status column.
     
     See http://www.cyscape.com/download/RETUsersGuide.pdf for details
     on all features this XML is capable of and how to construct new rules
     you may wish to add.
-->

<tests>
  <config>
    <headers>
      <!-- These are the default labels for the column names shown in the pass/fail table -->
      <name>Description</name>
      <answer>Status</answer>
      <message>Details</message>
    </headers>
    <answers>
      <!-- These are the default labels for the status shown in the pass/fail table -->
      <pass>Good</pass>
      <fail>Critical</fail>
      <warn>Caution</warn>
      <info>Info</info>
    </answers>

    <extended-options>
      <!-- We can set ExtendedOptions here if we want (optional) -->
      <page-title>Please wait...</page-title>
      <page-message>
        <div class="pagetitle">Testing your browser, please wait</div>
        <div class="pleasewait">
          Please wait while we test your browser...
          <img src="/bhtg/ret/images/loader.gif" width="24" height="24" valign="bottom"/>
        </div>
      </page-message>

      <body-tag></body-tag>
    </extended-options>
  </config>


  <!-- TODO: Add, remove, or change the rules defined below to match the requirements for your site -->

  <!-- The actual tests to enforce are defined here -->

  <test id="browser" name="Browser type">
    <warn>
      <browser>IE</browser>
      <version>6-</version>
      <message>You are using %browser% %version% which is outdated. Please upgrade to the latest version of Internet Explorer by clicking <a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx" target="new">here</a>
    </message>
    </warn>
    <pass>
      <browser>IE</browser>
      <version>7+</version>
      <message>
        <message>You are using %browser% %version% which is supported.</message>
      </message>
    </pass>
    <pass>
      <browser>Firefox</browser>
      <version>2+</version>
      <message>You are using %browser% %version% which is supported.</message>
    </pass>
    <fail>
      <message>Your %browser% %fullversion% browser is not supported.</message>
    </fail>
  </test>

  <test id="cookie" name="Cookies enabled">

    <!-- IE 7+ with Flash 7+ and disabled cookies. Includes Show Me link to video walk-thru -->
    <fail>
      <sessioncookies>false</sessioncookies>
      <browser>IE</browser>
      <version>7+</version>
      <plugin_flash>7+</plugin_flash>
      <message>
        To use this site please enable cookies in your browser. To do this on IE %version% go to the Tools -> Internet Options -> Privacy option and move the slider to the Medium position.
        <a href="javascript:void(0);" onClick="window.open('http://ret.browserhawk.com/media/video/ie7_cookies/ie7_cookies.html','help','width=900,height=800,menubar=no,status=no,location=no,toolbar=no,scrollbars=no');return false;">[Show me!]</a>
      </message>
    </fail>

    <!-- IE previous to 7.0 with Flash 7+ and disabled cookies. Includes Show Me link to video walk-thru -->
    <fail>
      <sessioncookies>false</sessioncookies>
      <browser>IE</browser>
      <version>7+</version>
      <plugin_flash>7+</plugin_flash>
      <message>
        To use this site please enable cookies in your browser. To do this on IE %version% go to the Tools -> Internet Options -> Privacy option and move the slider to the Medium position.
        <a href="javascript:void(0);" onClick="window.open('http://ret.browserhawk.com/media/video/ie_cookies/ie_cookies.html','help','width=900,height=800,menubar=no,status=no,location=no,toolbar=no,scrollbars=no');return false;">[Show me!]</a>
      </message>
    </fail>

    <!-- Firefox with Flash 7+ and disabled cookies. Includes Show Me link to video walk-thru -->
    <fail>
      <sessioncookies>false</sessioncookies>
      <browser>Firefox</browser>
      <plugin_flash>7+</plugin_flash>
      <message>
        To use this site please enable cookies in your browser. To do this on Firefox go to the Tools -> Options -> Privacy tab and check the box that allow cookies.
        <a href="javascript:void(0);" onClick="window.open('http://ret.browserhawk.com/media/video/ff_cookies/ff_cookies.html','help','width=900,height=800,menubar=no,status=no,location=no,toolbar=no,scrollbars=no');return false;">[Show me!]</a>
      </message>
    </fail>

    <!-- These are the same messages for IE/FF as above except no Show Me link since Flash 7 or higher is not available (Flash is required to show the video help) -->
    <fail>
      <sessioncookies>false</sessioncookies>
      <browser>IE</browser>
      <message>
        To use this site please enable cookies in your browser. To do this on IE %version% go to the Tools -> Internet Options -> Privacy option and move the slider to the Medium position.
      </message>
    </fail>
    <fail>
      <sessioncookies>false</sessioncookies>
      <browser>Firefox</browser>
      <message>
        To use this site please enable cookies in your browser. To do this on Firefox go to the Tools -> Options -> Privacy tab and check the box that allow cookies.
      </message>
    </fail>

    <!-- Default message for browsers other than IE and FF -->
    <fail>
      <sessioncookies>false</sessioncookies>
      <message>
        To use this site please enable cookies in your %browser% browser. For information on how to do this please consult the %browser% help documentation or contact us for details.
      </message>
    </fail>

    <pass>
      <message>Your cookies are enabled.</message>
    </pass>
  </test>

  <test id="javascript" name="JavaScript enabled">
    <fail>
      <javascriptenabled>false</javascriptenabled>
      <message>Please enable JavaScript for the best experience with our site and for more detailed browser help on this page.</message>
    </fail>
    <pass>
      <message>Your JavaScript is enabled.</message>
    </pass>
  </test>

  <test id="platform" name="Platform">
    <info>
      <message>Your operating system is %platform%.</message>
    </info>
  </test>

</tests>
