<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11321</bug_id>
          
          <creation_ts>2010-11-15 13:52:01 +0000</creation_ts>
          <short_desc>Scripted automated tests should be easier to write</short_desc>
          <delta_ts>2012-05-08 06:26:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Testing</product>
          <component>testharness.js</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="James Graham">james</assigned_to>
          <cc>ayg</cc>
    
    <cc>james</cc>
    
    <cc>mike</cc>
    
    <cc>plh</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="James Graham">james</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42539</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-11-15 13:52:01 +0000</bug_when>
    <thetext>Mozilla uses a scripted test system where the lifecycle of a test file load is basically:
 1) Before onload fires, the test calls SimpleTest.waitForExplicitFinish() to counter an unfortunate default that assumes that the test is done when onload fires.
 2) The test calls assertion functions an arbitrary numbers of times. The assertion functions have nice short names like ok(bool, &quot;message&quot;) or is(value1, value2, &quot;message&quot;).
 3) The test signals that it is done by calling SimpleTest.finish()

The HTML WG test harness requires much more boilerplate.

Please make it so the test writer only needs to call nice simple methods like ok() and is() and then call something like finish() when the test is done without wrappers like test(), async_test() or step().

It would be acceptable to have to call an initialization method like SimpleTest.waitForExplicitFinish(), but it would be even nicer not to have to do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67469</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-05-08 06:26:51 +0000</bug_when>
    <thetext>I don&apos;t think we need this anymore -- we now wrap testharness.js tests nicely enough.  &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=647323&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>