test suite paths when using ArcGIS JSAPI as an alternate loader in intern

杀马特。学长 韩版系。学妹 提交于 2019-12-03 16:38:16

As of Intern 1.3, you may specify alternative loaders, such as the one from Esri, in the useLoader configuration property. For the Esri loader, you would use this:

// intern.js
define({
    /* … other configuration options … */
    useLoader: { 'host-browser': 'http://js.arcgis.com/3.7/' }
    /* … */
});

Note that Esri uses the old Dojo 1 loader; if you want to specify additional dojoConfig criteria like async: true, etc., add the dojoConfig global object within your configuration file:

define([], function () {
    this.dojoConfig = { async: 1 };

    return {
        /* … configuration … */
    };
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!