Dojo Objective Harness is a unit testing framework developed by the Dojo Toolkit Community.
Questions tagged [doh]
42 questions
1
vote
1 answer
Running DOH on the command line with node.js
My first attempt to run tests using Dojo 1.8.3 on the command line with
node was thwarted by this error message:
../dojo/dojo.js:15
ode:function(){return _25;},guardCheckComplete:_37};};if(1){var _38=location.p
…

eradman
- 1,996
- 1
- 17
- 23
1
vote
1 answer
Dojo and doh: test for specific topic subscriptions
Does anyone know a way to use doh to test if an object is subscribed to a specific topic?
I am struggling to find any docs desccribing this type of test.
The reason that I am asking this is becuase when I construct my widget I subscribe it to a…

Jeremy
- 3,418
- 2
- 32
- 42
0
votes
1 answer
Using DOH to unit test a non-Dojo javascript project
Essentially I need help understanding this blog post:
http://www.sitepen.com/blog/2008/04/15/unit-testing-custom-code-with-the-dojo-objective-harness/
I want to use DOH to unit test an existing javascript project and I do not want to restructure…

redcartel
- 292
- 1
- 3
- 15
0
votes
1 answer
Dojo DOH, unit tests with robot actions wont run
When try to run dijit tests from 1.7 version, popup window shows up and test will not progress any further.
Popup says:
DOH has detected that the current web page is attempting to access DOH, but belongs to a different domain than the one you…

Peter
- 904
- 1
- 13
- 26
0
votes
1 answer
Dojo DOH unit testing
I am a novice to Dojo, and I wrote a few unit tests following the normal convention and structure. I also have written tests for widgets.
I tried to run the tests using the same command I use for the unit tests:
java -jar path/to/js.jar…

7dr3am7
- 755
- 1
- 8
- 21
0
votes
1 answer
How can i execute the DOH test synchronously?
Can anybody help me in finding a solution for this problem.
I have (assume) 3 doh functions 1st one is async and the rest are synchronous. I have to make async function to be called first and the result of this function to be passed to other two…

Vikram
- 51
- 1
- 6
0
votes
0 answers
Debugging Android private DNS
Tl;Dr: want to know, how to debug Android DNS resolution problems with Private DNS.
I've created my own DoH (Dns-over-Https) proxy server, to use it as a "Private DNS" in android. It proxifies requests to my own installation of dnscrypt-proxy, that…

MihanEntalpo
- 1,952
- 2
- 14
- 31
0
votes
1 answer
What happens if a DNS over HTTPS server responds with status 5xx or 4xx on iOS?
Looking at this example mobileconfig, I am trying to find out what happens if a DoH server responds with a status of 4xx or 5xx in responds to a DoH query on iOS. For example, if NGINX is broken or for whatever reason, the DoH server responds with…

bbkrz
- 423
- 1
- 8
- 16
0
votes
1 answer
Client cannot resolve my DoH server response
I am making a custom DoH server that should resolve some TLDs differently. I am using NodeJS to implement it. For most domains, it just proxies them to Google's DoH and it works. But when I try to resolve some custom domains, for…

ajaleksa
- 324
- 1
- 6
- 20
0
votes
1 answer
Running Dojo DOH tests within mstest
I'm required to run dojo DOH tests within a MSTest framework. So far I haven't found any useful links except one from Stephen Walter. A requirement is to avoid loading the test into jscript; for some tests I need to run within a browser instance…

Robert Hanson
- 1
- 1
0
votes
1 answer
XMLHTTP not available in D.O.H
My D.O.H framework is run by nodejs. (version is 1.10)
I know that nodejs should use xmlhttprequest or other module to complete XHR request. In my case, I am not goona use nodejs XHR directly, but use dojo's xhr instead. Apparently, dojo's xhr is…

Kir Chou
- 2,980
- 1
- 36
- 48
0
votes
0 answers
DOH test with ajax post
I have this test in DOH:
name: "refreshNotification_NotNullData", //refreshNotification action tesztje, nem adhat vissza null-t
runTest: function(){
require(["webnyk/common/components/ajaxAction"], function(ajaxAction){
…

Zoltán Raffai
- 127
- 1
- 10
0
votes
1 answer
doh of dojo is not working with sinon
I have tried this solution, it not works well.
Here is the example code from the link above:
require([
"doh/runner",
"http://sinonjs.org/releases/sinon-1.17.5.js"
], function(doh){
console.log(sinon);
});
Error message:
$ node…

Kir Chou
- 2,980
- 1
- 36
- 48
0
votes
2 answers
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…

rrob
- 1
- 1
0
votes
2 answers
Howto: generic test to see if widgets call this.inherited succesfully?
I maintain a custom library consisting of many dijit widgets at the company I work at.
Many of the defects/bugs I have had to deal with were the result of this.inherited(arguments) calls missing from overriden methods such as destroy startup and…

Joeppie
- 438
- 3
- 16