Hi Anze,

Regarding "Cannot find function scale in object [object 
CanvasRenderingContext2D]", this can be easily fixed in HtmlUnit be empty 
implementation.

Please have a look in the current implementation [1] and list all functions you 
need to skip.

[1] 
http://htmlunit.svn.sf.net/viewvc/htmlunit/trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/canvas/CanvasRenderingContext2D.java?view=markup#l_22

Yours,
Ahmed
----
Blog: http://asashour.blogspot.com 

________________________________
From: Anze <[email protected]>
To: [email protected]
Sent: Fri, February 12, 2010 1:14:31 PM
Subject: [Webtest] Prototype AJAX

Hi all!

We are starting out with WebTest and would appreciate some help... :)

1) we are making AJAX calls and found that you had to use <sleep> to wait for 
the call to finish. Now, this is awkward - why would someone ever want to do 
something in a test before AJAX finished? Is there any wait to say "wait for 
all AJAX to finish"?

2) we are using Flotr library for drawing graphs. However, it doesn't play 
nicely with WebTest:
TypeError: Cannot find function scale in object [object 
CanvasRenderingContext2D].
Since we do not intend to test Flotr charts at this point, we would like 
WebTest to skip Flotr.draw() JS function. The only way I can think of is to 
set a cookie in test files and then check for cookie before calling 
Flotr.draw. Is there a nicer way to do it?
Of course, tips on how to fix JS support for Flotr would be even better... :)

Thanks,

Anze
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest



      

Reply via email to