Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion FireUnit test adaption from Gears tests
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jan Odvarko  
View profile  
 More options Jan 12 2009, 9:52 am
From: Jan Odvarko <odva...@gmail.com>
Date: Mon, 12 Jan 2009 06:52:20 -0800 (PST)
Local: Mon, Jan 12 2009 9:52 am
Subject: Re: FireUnit test adaption from Gears tests
> After executing testArguments I get this odd error message from
> fireunit.js:989
> "str.replace is not a function"

The problem is that you are passing a function into fireunit.ok
instead of a string.

The second parameter 'x' should be a string for fireunit.ok method:
(fu_geo.html, line 39)
assertError = function(x) { fireunit.ok(false, x) };

But geolocation_test.js uses the assertError method as follows:
(geolocation_tests.js, e.g. line 49)
assertError(function() {
  geolocation.getCurrentPosition();

});

Also line fu_geo.html, line 42 needs following fix:
fireunit.testDone();

See following examples (this is what we use for Firebug):
http://code.google.com/p/fbug/source/browse/tests/unit/start.html
http://code.google.com/p/fbug/source/browse/tests/unit/startNet.html

Honza

On Jan 12, 3:17 pm, Kai Hendry <kai.hen...@gmail.com> wrote:

> Hi guys,

> Just toying with the possibility of adapting Google Gears tests to
> FireUnit. I don't like Gear's test harness as it seems far too quite
> complicated. Also they don't seem to run one publicly.

> So I put up:http://static.webvm.net/fireunit

> And I am a little stuck. Can fireunit.runTests run/load remote
> Javascript?

> After executing testArguments I get this odd error message from
> fireunit.js:989
> "str.replace is not a function"

> Just trying to discover how easy it is for JS unit tests to move
> between different test frameworks.

> Thanks for any pointers,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.