doh

Is it possible to test a sequence of asynchronous function calls with D.O.H

I am trying to use doh.Deferred to write a test that will check the following sequence of events: login with user A (asynchronous) log out (synchronous) login with user A (asynchronous) The return value of the second callback function is another doh.Deferred object. I was under the impression that the callback chain of d will wait f...

What happened to Dojo DOH?

The Dojo Toolkit used to come with a testing facility called "Doh". It was in the /utils directory. Now when you download dojo-release-1.3.2 the /utils directory is nowhere to be found. Is Doh dead and gone? ...

How to locally test cross-domain builds?

Using the dojo toolkit, what is the proper way of locally testing code that will be executed as cross-domain, without making the actual build? As it appears, there are three possible options (each, with their own drawbacks): Using local (non xd) XMLHttpRequest dojo.require This option does not really test the xd behavior, since it do...

DOH command-line testing of JavaScript functions outside of the Dojo root

I'm trying to run DOH from dojo-1.3.2 to test simple Javascript functions from command-line. However, I can't seem to get anything to run and the net seems to be devoid of DOH command-line documentation. Ideally the structure I would like is: Tests reside: C:\myproject\tests\ Dojo reside: C:\dojo-1.3.2\util\doh As of right now I've ...

How to test non-dojo javascript code with doh?

doh is the dojo unit-testing framework. I am trying to use doh to test a non-dojo javascript code, but i am facing the problem that doh seems intrusive and oblige me to use dojo.provide() in the tested js file(and the corresponding dojo.require() in the test js file). I want the tested js file to be unmodified and dojo-agnostic. Is it po...

Automation of DOH Robot tests interrumped by Pop-up message

In order to automate DOH tests during our build process, I use Selenium RC to launch different browsers (IE and Firefox) on a server placed on a different domain than the build machine. Each browser is directed to our runTests.html in order to start DOH. Sometimes, when a test that uses doh.robot starts, the following message is shown: ...