<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Updated DOH example? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525645#M49022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking at Derek's DOH unit testing example (&lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/05/21/writing-unit-tests-for-your-arcgis-api-for-javascript-apps/"&gt;http://blogs.esri.com/esri/arcgis/2012/05/21/writing-unit-tests-for-your-arcgis-api-for-javascript-apps/&lt;/A&gt;&lt;SPAN&gt;) and cannot get it to work with version 3.x of the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help me out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--john&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Apr 2013 03:26:26 GMT</pubDate>
    <dc:creator>JohnCartwright</dc:creator>
    <dc:date>2013-04-13T03:26:26Z</dc:date>
    <item>
      <title>Updated DOH example?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525645#M49022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking at Derek's DOH unit testing example (&lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/05/21/writing-unit-tests-for-your-arcgis-api-for-javascript-apps/"&gt;http://blogs.esri.com/esri/arcgis/2012/05/21/writing-unit-tests-for-your-arcgis-api-for-javascript-apps/&lt;/A&gt;&lt;SPAN&gt;) and cannot get it to work with version 3.x of the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please help me out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--john&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2013 03:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525645#M49022</guid>
      <dc:creator>JohnCartwright</dc:creator>
      <dc:date>2013-04-13T03:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Updated DOH example?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525646#M49023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've managed to run DOH like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;http://localhost/dojo/util/doh/runner.html?test=your/test/module&amp;amp;boot=path/to/testsConfig,path/to/arcgis/js/api&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My tests config looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojoConfig = require;
dojoConfig.packages = [{
 name: "doh",
 location: "path/to/dojo/util/doh",
 main: "main"
},{
 name: "testedPackage",
 location: "path/to/your/testedPackage",
 main: "main"
}];
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could recommend to view dojo/util/doh/_parseURLargs.js source to understand how modules are loaded. My solution have some issues, but it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525646#M49023</guid>
      <dc:creator>mykLT</dc:creator>
      <dc:date>2021-12-11T22:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Updated DOH example?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525647#M49024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply!.&amp;nbsp; I've not been able to get your suggestion to work despite using a local dojo.&amp;nbsp; Would it be possible for you to modify Derek's original sample as a more complete illustration of your approach?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your interest and help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--john&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Apr 2013 14:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525647#M49024</guid>
      <dc:creator>JohnCartwright</dc:creator>
      <dc:date>2013-04-21T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Updated DOH example?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525648#M49025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek used old DOH and now it's refactored, so you should use the newest one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be much easier if you write, how You've tried to run tests. Where does DOH script fail? What errors do you receive?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly, You should try to run for eg. dojo source's tests. You can find them in dojo/tests. Run them like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost/dojo/util/doh/runner.html?test=dojo/tests/module"&gt;http://localhost/dojo/util/doh/runner.html?test=dojo/tests/module&lt;/A&gt;&lt;SPAN&gt; . If it works, go on and try to add 'boot' parameter, custom configuration and your test module as I wrote before.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 12:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updated-doh-example/m-p/525648#M49025</guid>
      <dc:creator>mykLT</dc:creator>
      <dc:date>2013-04-22T12:27:45Z</dc:date>
    </item>
  </channel>
</rss>

