testsuite bugs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

testsuite bugs

bob6000
So far, to my knowledge, Opera is the only browser with LS support.
So I tried the testsuite in Opera, and all I got was a bunch of
errors...  
so I though...
Could those be Opera bugs?
So I started to investigate, and found what tuned out to be a very
buggy  
testsuite, that doesn't work in any browser.

A testcase for the problem

var foobar = 'hello';
function test(){
    assert(foobar == 'hello');
    var foobar = 'world';
    assert(foobar == 'world');
}
function assert(b){
   if(!b){alert('assertion failed');throw "error";}
}

The problem is, the testsuite defines a global variable 'builder', then  
accesses it inside the scope of a function, then afterwards it declares
a  
local variable with the same name. Probably they expect for the 1st to  
refer to the global variable, and the second to the local one...


var builder = null;
/* (...) */

builder = createConfiguredBuilder();
/* (...) */

function DOMBuilderFilterTest0() {
    var success;
     //global variable referenced here, should yield an Object
     if(checkInitialization(builder, "DOMBuilderFilterTest0") != null)  
return;
     myfilter = new LSParserFilterN10027();

/* (...) */
     //local variable declared here - initial value is undefined
     var builder;


So please make sure to change the variable names.

Second problem,
the function getResourceURI in the same file at line 174 is undefined,  
doesn't exist, in any file or native UA implementation...
Where does this come from ?










































http://www.mootzie.com

Reply | Threaded
Open this post in threaded view
|

Re: testsuite bugs

joao.eiras (Bugzilla)
On , bob6000 <[hidden email]> wrote:

> So far, to my knowledge, Opera is the only browser with LS support.
> So I tried the testsuite in Opera, and all I got was a bunch of
> errors...
> so I though...
> Could those be Opera bugs?
> So I started to investigate, and found what tuned out to be a very
> buggy
> testsuite, that doesn't work in any browser.
>
> A testcase for the problem
>
> var foobar = 'hello';

Hi.

That was my email from http://lists.w3.org/Archives/Public/www-dom-ts/2006Sep/0000.html :)
It's clear that noone is maintaining the DOM3 LS test suite. I wonder if they should have it available to the public is it simply does not work.