コード例 #1
0
        testAsyncLoadTemplateErrors : function () {
            Aria.loadTemplate({
                classpath : "test.aria.templates.test.error.BadResources",
                div : "thisDivIsInTheBody"
            }, {
                fn : this._loadTemplateErrorsCallback,
                scope : this
            });

        },
コード例 #2
0
        testAsyncLoadInvalidDependencies : function () {
            // Inject an invalid item in the cache
            var cacheItem = ariaCoreCache.getItem("files", "invalidInCache.js", true);
            cacheItem.status = ariaCoreCache.STATUS_ERROR;

            Aria.loadTemplate({
                classpath : "test.aria.templates.test.error.InvalidCache",
                div : "thisDivIsInTheBody"
            }, {
                fn : this._loadInvalidDependenciesCallback,
                scope : this
            });
        },