[Bug 6183] New: udom-glob-204-t.svg is an invalid test


           Summary: udom-glob-204-t.svg is an invalid test
           Product: SVG
           Version: SVG 1.2 Tiny
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Micro DOM (uDOM)
        AssignedTo: schepers@w3.org
        ReportedBy: generalangrymike@gmail.com
         QAContact: www-svg@w3.org

According to the specification at: 

void getURL(in DOMString iri, in AsyncStatusCallback callback)

GetUrl must pass in an object for the AsynStatusCallback.  This object must
implement the interface of operationComplete. 

The ECMA script bindings have the same requirements. 

In the test file the following code is used:

function callback(i)
    this.fn = function(status) { updateStatus("actual" + i, status); };

var callbacks = new Array(rows.length);

    for(var i = 0; i < rows.length; i++)
        callbacks[i] = new callback(i);
        getURL(rows[i].url, callbacks[i].fn);

This is invalid according to the specification.

this.fn should be changed to this.operationComplete


getURL(rows[i].url, callbacks[i].fn);

should be changed to: 
getURL(rows[i].url, callbacks[i]);

Another option is to change the specification to allow functions to be passed
in, as well as an object.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 24 October 2008 07:29:27 UTC