Dojo Objective Harness is a unit testing framework developed by the Dojo Toolkit Community.
Questions tagged [doh]
42 questions
0
votes
1 answer
How can I write test cases as classes in dojo
I want to be able to write testcases as class hierarchies in dojo/doh.
But when the tests get called they seem to be called using hitch hence looses the inherited methods.
So far I've only been able to write test cases which are independant…

jagguli
- 631
- 1
- 7
- 21
0
votes
1 answer
Running DOH tests through node -- 'document is not defined'
I'm trying to get my DOH tests working via the command line for easy testing. However, I'm running into some issues and need some direction!
I am currently running the following test module:
define([
"doh/runner",
"dojo/query"
], function…

streetlight
- 5,968
- 13
- 62
- 101
0
votes
1 answer
How to add 'has' module when executing DOH tests?
I'm building a suite of Dojo/DOH unit tests that are executed by using the built-in browser runner. In addition to the unit tests, I'm building a facility to create mocks for the unit tests, but it requires the Dojo 'undef' API (dojo-undef-api).…

naivedeveloper
- 2,814
- 8
- 34
- 43
0
votes
0 answers
D.O.H. test for document.domain
I am trying to write a D.O.H. test for a function which determines if the current environment is running in either production or a local development machine. The function accomplishes this by analyzing the string in the document.domain property. …
0
votes
1 answer
doh Hello World with templated widget that mixin's ContentPane
I am trying to get a sample doh test case running.
I am testing a templated widget that mixins from dijit/layout/ContentPane.
No error is being thrown...the component simply doesn't render.
The template file is being loaded because I can see it in…

Jonathan.Brink
- 23,757
- 20
- 73
- 115
0
votes
1 answer
Run DOH robots tests in java program in background
I would like to embed dojo/robot tests is java application.
Java application would use java-webengine for load web pages and for embed dojo script to these pages. Java-webengine gives possibility run java script.
I understand, that DOH use system…

Yury Bushev
- 642
- 9
- 25
0
votes
2 answers
Dojo widget variable reference still held after doh test
I've been creating some tests for my Dojo widget to check that boolean flags are being set correctly. However, I've found that since I have altered my constructor to pass in an object, previously ran tests seem to affect the subsequent tests.
I've…

IpponSolutions
- 58
- 6
0
votes
1 answer
Need help in configuring correct paths for DOH
I'm trying to get DOH testing working for my company's upcoming platform, but I can't figure out the right combination of paths. Our file structure looks like this:
/dojo15
/release
/dojo
/dojo
dojo.js
dojoExt.js
…

spinn
- 302
- 1
- 6
0
votes
1 answer
How to set up Dojo Doh unit testing on Travis CI?
Does anyone have experience setting up dojo doh based unit testing on Travis CI?
I'd like to set up a webserver, and headless browser.
If possible, I'd also like to use dijit/robotx (which uses a java plugin) to further automate some tests.
From…

superdweebie
- 1,576
- 14
- 23
0
votes
2 answers
Testing Dojo with DOH without local Dojo installation
I'm trying to work out how to use DOH to test Dojo modules if I don't install Dojo locally to my project. I'm working in Eclipse and ideally, I'd like something that I can run as part of a Maven build eventually. The Dojo package is 5-20Mb and I…

brabster
- 42,504
- 27
- 146
- 186
0
votes
1 answer
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…

Lawrence Barsanti
- 31,929
- 10
- 46
- 68
-2
votes
0 answers
Not able to ssh into server after setting up cloudflare warp
On linux server i have installed warp-cli and after warp-cli register and later setting warp-cli set-mode warp+doh and warp-cli connect I lost access to ssh server and i'm no longer able to ssh into that server.
I have found the solution
During…

Doe
- 19
- 4