├── tests
├── baseonly.js
├── cache
│ ├── regular.html
│ ├── object.html
│ └── sanitized.html
├── _base
│ ├── loader
│ │ ├── a.js
│ │ ├── getText.txt
│ │ ├── requirejs
│ │ │ ├── layers
│ │ │ │ ├── helloWorld.txt
│ │ │ │ ├── epsilon.js
│ │ │ │ ├── build.sh
│ │ │ │ ├── layer1.js
│ │ │ │ └── allplugins-text.html
│ │ │ ├── relative
│ │ │ │ ├── foo
│ │ │ │ │ ├── bar
│ │ │ │ │ │ ├── message.txt
│ │ │ │ │ │ ├── two.js
│ │ │ │ │ │ └── one.js
│ │ │ │ │ └── three.js
│ │ │ │ ├── relative-tests.js
│ │ │ │ └── relative.html
│ │ │ ├── text
│ │ │ │ ├── resources
│ │ │ │ │ ├── local.html
│ │ │ │ │ └── sample.html
│ │ │ │ ├── subwidget2.html
│ │ │ │ ├── widget.html
│ │ │ │ ├── local.js
│ │ │ │ ├── subwidget.js
│ │ │ │ ├── subwidget.html
│ │ │ │ ├── widget.js
│ │ │ │ └── textOnly.html
│ │ │ ├── urlfetch
│ │ │ │ ├── one.js
│ │ │ │ ├── two.js
│ │ │ │ └── three.js
│ │ │ ├── uniques
│ │ │ │ ├── three.js
│ │ │ │ ├── one.js
│ │ │ │ ├── two.js
│ │ │ │ └── uniques.html
│ │ │ ├── i18n
│ │ │ │ ├── nls
│ │ │ │ │ ├── en-us-surfer
│ │ │ │ │ │ └── colors.js
│ │ │ │ │ ├── fr
│ │ │ │ │ │ └── colors.js
│ │ │ │ │ └── colors.js
│ │ │ │ ├── commonA.js
│ │ │ │ ├── commonB.js
│ │ │ │ ├── i18n.js
│ │ │ │ ├── testModule.js
│ │ │ │ └── common.html
│ │ │ ├── dimple.js
│ │ │ ├── exports
│ │ │ │ ├── usethis.js
│ │ │ │ ├── assign2.js
│ │ │ │ ├── assign.js
│ │ │ │ ├── vanilla.js
│ │ │ │ ├── funcSet.js
│ │ │ │ ├── implicitModule.js
│ │ │ │ ├── simpleReturn.js
│ │ │ │ ├── exports.html
│ │ │ │ └── exports-tests.js
│ │ │ ├── foo
│ │ │ ├── map.js
│ │ │ ├── bar
│ │ │ ├── tres.js
│ │ │ ├── simple.js
│ │ │ ├── func.js
│ │ │ ├── paths
│ │ │ │ └── first.js
│ │ │ │ │ ├── first.js
│ │ │ │ │ └── second.js
│ │ │ ├── dos.js
│ │ │ ├── one.js
│ │ │ ├── two.js
│ │ │ ├── uno.js
│ │ │ ├── funcThree.js
│ │ │ ├── funcFour.js
│ │ │ ├── dataMain.js
│ │ │ ├── dataMain.html
│ │ │ ├── funcOne.js
│ │ │ ├── funcTwo.js
│ │ │ ├── circular.html
│ │ │ ├── depoverlap.html
│ │ │ ├── simple-tests.js
│ │ │ ├── requirejs-setup.js
│ │ │ ├── simple-nohead.html
│ │ │ ├── circular-tests.js
│ │ │ ├── depoverlap.js
│ │ │ ├── simple.html
│ │ │ └── config.html
│ │ ├── nls
│ │ │ ├── syncBundle.js
│ │ │ ├── ab
│ │ │ │ ├── syncBundle.js
│ │ │ │ └── amdBundle.js
│ │ │ ├── ab-cd-ef
│ │ │ │ ├── syncBundle.js
│ │ │ │ └── amdBundle.js
│ │ │ └── amdBundle.js
│ │ ├── modules
│ │ │ ├── data.js
│ │ │ ├── anon.js
│ │ │ ├── factoryArity.js
│ │ │ ├── full.js
│ │ │ └── wrapped.js
│ │ ├── pub1.js
│ │ ├── pub2.js
│ │ ├── declareStepsOnProvideAmd.js
│ │ ├── xdomain
│ │ │ ├── local1-browser-skip.js
│ │ │ ├── local1-dep.js
│ │ │ ├── local1-browser.js
│ │ │ ├── local3.js
│ │ │ ├── local1-runtimeDependent1.js
│ │ │ └── local2.js
│ │ ├── myTopLevelModule
│ │ │ └── myModule.js
│ │ ├── myTopLevelModule.js
│ │ ├── syncFromAsyncModuleDep.js
│ │ ├── coolio
│ │ │ ├── calendar.js
│ │ │ ├── calendar1.js
│ │ │ ├── calendar-amd.js
│ │ │ ├── coolio.js
│ │ │ ├── coolio.profile.js
│ │ │ └── coolio-dev-legacy.html
│ │ ├── amdModuleDep.js
│ │ ├── amdModuleDep1.js
│ │ ├── amdModuleDep2.js
│ │ ├── amdModule.js
│ │ ├── amdModule1.js
│ │ ├── amdModule2.js
│ │ ├── syncModuleDep.js
│ │ ├── syncModuleDep2.js
│ │ ├── syncModuleDep1.js
│ │ ├── syncFromAsyncModule.js
│ │ ├── syncModule2.js
│ │ ├── syncModule1.js
│ │ ├── package.html
│ │ ├── hostenv_spidermonkey.js
│ │ ├── declareStepsOnProvide.js
│ │ ├── syncModule.js
│ │ ├── hostenv_rhino.js
│ │ ├── traceApi.html
│ │ ├── core.js
│ │ ├── modules.js
│ │ ├── ready.html
│ │ ├── declareStepsOnProvide.html
│ │ ├── publishRequireResult.html
│ │ ├── fastbackTest.html
│ │ ├── 8976.html
│ │ ├── modulePaths.html
│ │ ├── config-sniff.html
│ │ ├── debugConsole.html
│ │ ├── config-sniff-djConfig.html
│ │ ├── addLoadEvents.html
│ │ └── cdnTest.js
│ ├── xhr.xml
│ ├── fx.js
│ ├── xhr.js
│ ├── window.js
│ ├── scrollingQuirksIframe.html
│ ├── scrollingStrictIframe.html
│ ├── xhrDummyMethod.php
│ ├── timeout.php
│ ├── query.js
│ ├── runTests.html
│ ├── window_iframe_quirks.html
│ ├── absQuirksIframe.html
│ ├── absStrictIframe.html
│ ├── window_iframe_standards.html
│ ├── fx_delay.html
│ ├── queryPortability.html
│ ├── html.js
│ ├── xhtml.php
│ ├── object.js
│ ├── sniff.html
│ └── Color.js
├── io
│ ├── scriptLoad.js
│ ├── iframeResponse.html
│ ├── scriptSimple.js
│ ├── iframe.js
│ ├── script.js
│ ├── iframeResponse.text.html
│ ├── iframeResponse.json.html
│ ├── iframeResponse.js.html
│ ├── iframeResponse.xml
│ ├── scriptJsonp.js
│ ├── iframeUploadTest.html
│ └── upload.cgi
├── store
│ ├── node1.2
│ ├── node1.1
│ ├── runTests.html
│ ├── treeTestRoot
│ └── JsonRest.js
├── nls
│ ├── sw
│ │ └── salutations.js
│ ├── en-au
│ │ └── salutations.js
│ ├── en-us-hawaii
│ │ └── salutations.js
│ ├── en-us-texas
│ │ └── salutations.js
│ ├── cs
│ │ └── salutations.js
│ ├── fa
│ │ └── salutations.js
│ ├── he
│ │ └── salutations.js
│ ├── de
│ │ └── salutations.js
│ ├── el
│ │ └── salutations.js
│ ├── en-us-new_york-brooklyn
│ │ └── salutations.js
│ ├── hi
│ │ └── salutations.js
│ ├── it
│ │ └── salutations.js
│ ├── pt
│ │ └── salutations.js
│ ├── ru
│ │ └── salutations.js
│ ├── tr
│ │ └── salutations.js
│ ├── zh-cn
│ │ └── salutations.js
│ ├── zh-tw
│ │ └── salutations.js
│ ├── fr
│ │ └── salutations.js
│ ├── pl
│ │ └── salutations.js
│ ├── yi
│ │ └── salutations.js
│ ├── ja
│ │ └── salutations.js
│ ├── ko
│ │ └── salutations.js
│ ├── th
│ │ └── salutations.js
│ ├── es
│ │ └── salutations.js
│ ├── ar
│ │ └── salutations.js
│ └── salutations.js
├── back.js
├── behavior.js
├── cookie.js
├── html.js
├── parser.js
├── touch.js
├── window
│ └── viewportQuirks.html
├── NodeList-data.js
├── NodeList-traverse.js
├── NodeList-manipulate.js
├── store.js
├── data.js
├── fx.js
├── uacss.js
├── smoke-dojo-sie.html
├── window.js
├── TODO
├── data
│ ├── ItemFileReadStore.js
│ ├── runTests.html
│ ├── countries_withoutid.json
│ ├── countries_withNull.json
│ ├── countries_idcollision.json
│ ├── countries.json
│ ├── countries_commentFiltered.json
│ ├── data_multitype.json
│ ├── geography_hierarchy_small.json
│ ├── countries_withBoolean.json
│ ├── countries_withDates.json
│ └── reference_integrity.json
├── runTests.html
├── resources
│ ├── testClass.php
│ ├── testClass.smd
│ ├── ApplicationState.js
│ └── test_JsonRPCMediator.php
├── regexp.js
├── cldr.js
├── back-hash.js
├── _base.js
├── sniff.html
├── Stateful.js
├── module.js
├── cache.js
├── dnd
│ └── dndDefault.css
├── mouse.js
└── AdapterRegistry.js
├── cldr
├── LICENSE
├── nls
│ ├── en-au
│ │ ├── number.js
│ │ ├── currency.js
│ │ └── gregorian.js
│ ├── en-gb
│ │ ├── number.js
│ │ └── gregorian.js
│ ├── zh-hk
│ │ ├── number.js
│ │ ├── currency.js
│ │ └── gregorian.js
│ ├── zh-hant
│ │ ├── number.js
│ │ └── currency.js
│ ├── en-ca
│ │ ├── currency.js
│ │ └── gregorian.js
│ ├── pt-pt
│ │ └── number.js
│ ├── sk
│ │ ├── number.js
│ │ └── currency.js
│ ├── fr-ch
│ │ ├── number.js
│ │ └── gregorian.js
│ ├── it
│ │ ├── number.js
│ │ └── currency.js
│ ├── ja
│ │ ├── number.js
│ │ └── currency.js
│ ├── zh
│ │ ├── number.js
│ │ └── currency.js
│ ├── zh-tw
│ │ ├── currency.js
│ │ └── gregorian.js
│ ├── ko
│ │ ├── currency.js
│ │ └── number.js
│ ├── ar
│ │ ├── number.js
│ │ └── currency.js
│ ├── el
│ │ ├── number.js
│ │ ├── currency.js
│ │ └── hebrew.js
│ ├── he
│ │ ├── currency.js
│ │ └── number.js
│ ├── cs
│ │ ├── currency.js
│ │ └── number.js
│ ├── ro
│ │ ├── currency.js
│ │ └── number.js
│ ├── hu
│ │ ├── number.js
│ │ └── currency.js
│ ├── pl
│ │ ├── currency.js
│ │ └── number.js
│ ├── es
│ │ ├── number.js
│ │ └── currency.js
│ ├── ca
│ │ ├── currency.js
│ │ └── number.js
│ ├── nl
│ │ ├── currency.js
│ │ └── number.js
│ ├── pt
│ │ ├── currency.js
│ │ └── number.js
│ ├── ru
│ │ ├── number.js
│ │ └── currency.js
│ ├── da
│ │ ├── currency.js
│ │ └── number.js
│ ├── sl
│ │ ├── number.js
│ │ └── currency.js
│ ├── de
│ │ ├── currency.js
│ │ └── number.js
│ ├── fi
│ │ ├── number.js
│ │ └── currency.js
│ ├── fr
│ │ ├── number.js
│ │ └── currency.js
│ ├── nb
│ │ ├── number.js
│ │ └── currency.js
│ ├── sv
│ │ ├── number.js
│ │ └── currency.js
│ ├── tr
│ │ ├── number.js
│ │ └── currency.js
│ ├── en
│ │ ├── currency.js
│ │ └── number.js
│ ├── th
│ │ ├── number.js
│ │ └── currency.js
│ ├── currency.js
│ └── number.js
├── README
└── monetary.js
├── resources
├── blank.gif
├── blank.html
├── images
│ ├── dndCopy.png
│ ├── dndMove.png
│ ├── dndNoCopy.png
│ └── dndNoMove.png
├── _modules.js
├── dnd.css
└── iframe_history.html
├── _firebug
├── errorIcon.png
├── infoIcon.png
├── tab_lft_norm.png
├── tab_lft_over.png
├── tab_rgt_norm.png
├── tab_rgt_over.png
└── warningIcon.png
├── _base
├── query.js
├── browser.js
└── event.js
├── loadInit.js
├── require.js
├── cache.js
├── tests.js
├── jaxer.js
├── dnd
├── AutoSource.js
├── Target.js
└── common.js
├── package.json
├── store
└── README
├── Evented.js
├── topic.js
├── dojo.profile.js
├── data
└── api
│ └── Request.js
├── keys.js
├── selector
└── _loader.js
└── NodeList-html.js
/tests/baseonly.js:
--------------------------------------------------------------------------------
1 | define(["./_base"], 1);
2 |
--------------------------------------------------------------------------------
/tests/cache/regular.html:
--------------------------------------------------------------------------------
1 |
Hello World
2 |
--------------------------------------------------------------------------------
/tests/_base/loader/a.js:
--------------------------------------------------------------------------------
1 | define({
2 | number: 42
3 | });
--------------------------------------------------------------------------------
/tests/_base/loader/getText.txt:
--------------------------------------------------------------------------------
1 | dojo._getText() test data
--------------------------------------------------------------------------------
/tests/io/scriptLoad.js:
--------------------------------------------------------------------------------
1 | scriptLoad = "loaded";
2 |
3 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/layers/helloWorld.txt:
--------------------------------------------------------------------------------
1 | hello world
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/relative/foo/bar/message.txt:
--------------------------------------------------------------------------------
1 | hello world
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/resources/local.html:
--------------------------------------------------------------------------------
1 | Local
--------------------------------------------------------------------------------
/cldr/LICENSE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/cldr/LICENSE
--------------------------------------------------------------------------------
/tests/_base/loader/nls/syncBundle.js:
--------------------------------------------------------------------------------
1 | ({
2 | syncBundle:"syncBundle"
3 | })
--------------------------------------------------------------------------------
/tests/_base/loader/nls/ab/syncBundle.js:
--------------------------------------------------------------------------------
1 | ({
2 | syncBundle:"syncBundle-ab"
3 | })
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/subwidget2.html:
--------------------------------------------------------------------------------
1 | This! is template2
--------------------------------------------------------------------------------
/resources/blank.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/resources/blank.gif
--------------------------------------------------------------------------------
/tests/_base/loader/modules/data.js:
--------------------------------------------------------------------------------
1 | define({
2 | greeting: "Hello",
3 | five: 5
4 | });
--------------------------------------------------------------------------------
/tests/_base/loader/pub1.js:
--------------------------------------------------------------------------------
1 | define([], function(){
2 | return {status:"ok"};
3 | });
--------------------------------------------------------------------------------
/tests/_base/loader/pub2.js:
--------------------------------------------------------------------------------
1 | define([], function(){
2 | return {status:"ok"};
3 | });
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/urlfetch/one.js:
--------------------------------------------------------------------------------
1 | var one = {
2 | name: "one"
3 | };
4 |
--------------------------------------------------------------------------------
/tests/store/node1.2:
--------------------------------------------------------------------------------
1 | { id: 'node1.2',name:'node1.2', someProperty:'somePropertyA2'}
2 |
--------------------------------------------------------------------------------
/_firebug/errorIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/_firebug/errorIcon.png
--------------------------------------------------------------------------------
/_firebug/infoIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/_firebug/infoIcon.png
--------------------------------------------------------------------------------
/tests/_base/loader/nls/ab/amdBundle.js:
--------------------------------------------------------------------------------
1 | define({
2 | amdBundle:"amdBundle-ab"
3 | });
4 |
--------------------------------------------------------------------------------
/_firebug/tab_lft_norm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/_firebug/tab_lft_norm.png
--------------------------------------------------------------------------------
/_firebug/tab_lft_over.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/_firebug/tab_lft_over.png
--------------------------------------------------------------------------------
/_firebug/tab_rgt_norm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/_firebug/tab_rgt_norm.png
--------------------------------------------------------------------------------
/_firebug/tab_rgt_over.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/_firebug/tab_rgt_over.png
--------------------------------------------------------------------------------
/_firebug/warningIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/_firebug/warningIcon.png
--------------------------------------------------------------------------------
/resources/blank.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tests/_base/loader/nls/ab-cd-ef/syncBundle.js:
--------------------------------------------------------------------------------
1 | ({
2 | syncBundle:"syncBundle-ab-cd-ef"
3 | })
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/uniques/three.js:
--------------------------------------------------------------------------------
1 | define("three", {
2 | name: "three"
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/nls/ab-cd-ef/amdBundle.js:
--------------------------------------------------------------------------------
1 | define({
2 | amdBundle:"amdBundle-ab-cd-ef"
3 | });
4 |
--------------------------------------------------------------------------------
/resources/images/dndCopy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/resources/images/dndCopy.png
--------------------------------------------------------------------------------
/resources/images/dndMove.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/resources/images/dndMove.png
--------------------------------------------------------------------------------
/resources/images/dndNoCopy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/resources/images/dndNoCopy.png
--------------------------------------------------------------------------------
/resources/images/dndNoMove.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kriszyp/dojo/HEAD/resources/images/dndNoMove.png
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/nls/en-us-surfer/colors.js:
--------------------------------------------------------------------------------
1 | define({
2 | red: "red, dude"
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/relative/foo/bar/two.js:
--------------------------------------------------------------------------------
1 | define("foo/bar/two", {
2 | name: "two"
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/relative/foo/three.js:
--------------------------------------------------------------------------------
1 | define("foo/three", {
2 | name: "three"
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/xhr.xml:
--------------------------------------------------------------------------------
1 |
2 | blarg
3 |
--------------------------------------------------------------------------------
/_base/query.js:
--------------------------------------------------------------------------------
1 | define(["./kernel", "../query", "./NodeList"], function(dojo){
2 | return dojo.query;
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/dimple.js:
--------------------------------------------------------------------------------
1 | define("dimple",
2 | {
3 | color: "dimple-blue"
4 | }
5 | );
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/nls/fr/colors.js:
--------------------------------------------------------------------------------
1 | define({
2 | red: "rouge",
3 | blue: "bleu"
4 | });
5 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/layers/epsilon.js:
--------------------------------------------------------------------------------
1 | define("epsilon",
2 | {
3 | name: "epsilon"
4 | }
5 | );
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/usethis.js:
--------------------------------------------------------------------------------
1 | define(function (require, exports) {
2 | this.name = 'usethis';
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/widget.html:
--------------------------------------------------------------------------------
1 | This is a widget! I am in a widget
--------------------------------------------------------------------------------
/tests/nls/sw/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | hello: "Hujambo"
5 | }
6 | //end v1.x content
7 | );
8 |
--------------------------------------------------------------------------------
/cldr/nls/en-au/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "currencyFormat": "¤#,##0.00"
5 | }
6 | //end v1.x content
7 | );
--------------------------------------------------------------------------------
/cldr/nls/en-gb/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "currencyFormat": "¤#,##0.00"
5 | }
6 | //end v1.x content
7 | );
--------------------------------------------------------------------------------
/cldr/nls/zh-hk/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "currencyFormat": "¤#,##0.00"
5 | }
6 | //end v1.x content
7 | );
--------------------------------------------------------------------------------
/tests/_base/loader/declareStepsOnProvideAmd.js:
--------------------------------------------------------------------------------
1 | define(["./declareStepsOnProvide"], function(result){
2 | return result;
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/nls/amdBundle.js:
--------------------------------------------------------------------------------
1 | define({
2 | root:{
3 | amdBundle:"amdBundle"
4 | },
5 | ab:1,
6 | "ab-cd-ef":1
7 | });
8 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/commonA.js:
--------------------------------------------------------------------------------
1 | define(['i18n!nls/colors'], function (colors) {
2 | return colors.red;
3 | });
4 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/commonB.js:
--------------------------------------------------------------------------------
1 | define(['i18n!nls/colors'], function (colors) {
2 | return colors.blue;
3 | });
4 |
--------------------------------------------------------------------------------
/tests/nls/en-au/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | hello: "G'day"
5 | }
6 | //end v1.x content
7 | );
8 |
--------------------------------------------------------------------------------
/cldr/nls/zh-hant/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "currencyFormat": "¤#,##0.00"
5 | }
6 | //end v1.x content
7 | );
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/foo:
--------------------------------------------------------------------------------
1 | //A test for loading a file with a protocol URL via require()
2 |
3 | foo = {
4 | name: "foo"
5 | };
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/i18n.js:
--------------------------------------------------------------------------------
1 | // alias i18n to dojo/i18n
2 | define(["dojo/i18n"], function(i18n){
3 | return i18n;
4 | });
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/map.js:
--------------------------------------------------------------------------------
1 | define("map",
2 | function() {
3 | return {
4 | name: "map"
5 | };
6 | }
7 | );
8 |
--------------------------------------------------------------------------------
/tests/_base/loader/xdomain/local1-browser-skip.js:
--------------------------------------------------------------------------------
1 | xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-browser-skip-1");
2 |
--------------------------------------------------------------------------------
/tests/nls/en-us-hawaii/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | hello: "Aloha"
5 | }
6 | //end v1.x content
7 | );
8 |
--------------------------------------------------------------------------------
/tests/nls/en-us-texas/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | hello: "Howdy"
5 | }
6 | //end v1.x content
7 | );
8 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/bar:
--------------------------------------------------------------------------------
1 | //A test for loading a file with a protocol-less URL via require()
2 |
3 | bar = {
4 | name: "bar"
5 | };
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/tres.js:
--------------------------------------------------------------------------------
1 | define("tres",
2 | function() {
3 | return {
4 | name: "tres"
5 | };
6 | }
7 | );
8 |
--------------------------------------------------------------------------------
/tests/nls/cs/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | cs: "česky",
5 | hello: "Ahoj"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/fa/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | fa: "فارسی",
5 | hello: "درود"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/he/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | he: "עברית",
5 | hello: "שלום"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/simple.js:
--------------------------------------------------------------------------------
1 | define("simple",
2 | function() {
3 | return {
4 | color: "blue"
5 | };
6 | }
7 | );
8 |
--------------------------------------------------------------------------------
/tests/nls/de/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | de: "Deutsch",
5 | hello: "Hallo"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/el/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | el: "Ελληνικά",
5 | hello: "Γειά"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/en-us-new_york-brooklyn/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | hello: "Yo"
5 | }
6 | //end v1.x content
7 | );
8 |
--------------------------------------------------------------------------------
/tests/nls/hi/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | hi: "हिन्दी",
5 | hello: "नमस्ते"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/it/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | it: "italiano",
5 | hello: "Ciao"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/pt/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | pt: "Português",
5 | hello: "Olá"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/ru/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | ru: "русский",
5 | hello: "Привет"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/tr/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | tr: "Türkçe",
5 | hello: "Merhaba"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/zh-cn/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | 'zh-cn': "汉语",
5 | hello: "你好"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/zh-tw/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | 'zh-tw': "漢語",
5 | hello: "你好"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/cldr/nls/en-au/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "AUD_symbol": "$",
5 | "USD_symbol": "US$"
6 | }
7 | //end v1.x content
8 | );
--------------------------------------------------------------------------------
/cldr/nls/en-ca/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "CAD_symbol": "$",
5 | "USD_symbol": "US$"
6 | }
7 | //end v1.x content
8 | );
--------------------------------------------------------------------------------
/cldr/nls/pt-pt/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "currencyFormat": "#,##0.00 ¤",
5 | "group": " "
6 | }
7 | //end v1.x content
8 | );
--------------------------------------------------------------------------------
/tests/nls/fr/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | fr: "Français",
5 | hello: "Bonjour"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/pl/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | pl: "Polski",
5 | hello: "Dzièn dobry"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/nls/yi/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | yi: "ייִדיש",
5 | hello: "אַ גוטן טאָג"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/_base/loader/myTopLevelModule/myModule.js:
--------------------------------------------------------------------------------
1 | dojo.provide("myTopLevelModule.myModule");
2 | myTopLevelModule.myModule.name= "myTopLevelModule.myModule";
--------------------------------------------------------------------------------
/tests/io/iframeResponse.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SUCCESSFUL HTML response
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/io/scriptSimple.js:
--------------------------------------------------------------------------------
1 | myTasks = new Array();
2 | myTasks[0] = 'Take out trash.';
3 | myTasks[1] = 'Do dishes.';
4 | myTasks[2] = 'Brush teeth.';
5 |
6 |
--------------------------------------------------------------------------------
/tests/nls/ja/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | ja: "\u65E5\u672C\u8A9E",
5 | hello: "こにちは"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/layers/build.sh:
--------------------------------------------------------------------------------
1 | ../../build/build.sh baseUrl=../.. name=require include=i18n,text,order, out=allplugins-require.js optimize=none
2 |
--------------------------------------------------------------------------------
/tests/_base/loader/myTopLevelModule.js:
--------------------------------------------------------------------------------
1 | dojo.provide("myTopLevelModule");
2 | dojo.require("myTopLevelModule.myModule");
3 | myTopLevelModule.name= "myTopLevelModule";
--------------------------------------------------------------------------------
/tests/nls/ko/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | ko: "\uD55C\uAD6D\uC5B4",
5 | hello: "\uc548\ub155"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/cldr/nls/sk/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "currencyFormat": "#,##0.00 ¤",
5 | "group": " ",
6 | "decimal": ","
7 | }
8 | //end v1.x content
9 | );
--------------------------------------------------------------------------------
/tests/_base/loader/modules/anon.js:
--------------------------------------------------------------------------------
1 | define(["../a", "./wrapped"], function (a, wrapped) {
2 | return {
3 | theAnswer: a.number,
4 | five: wrapped.five
5 | };
6 | });
--------------------------------------------------------------------------------
/tests/_base/loader/modules/factoryArity.js:
--------------------------------------------------------------------------------
1 | // make sure that module.exports doesn't kill factory result since factory has arity<3
2 | define(function() { return {i : 5} ; });
--------------------------------------------------------------------------------
/loadInit.js:
--------------------------------------------------------------------------------
1 | define(["./_base/loader"], function(loader){
2 | return {
3 | dynamic:0,
4 | normalize:function(id){return id;},
5 | load:loader.loadInit
6 | };
7 | });
8 |
--------------------------------------------------------------------------------
/require.js:
--------------------------------------------------------------------------------
1 | define(["./_base/loader"], function(loader){
2 | return {
3 | dynamic:0,
4 | normalize:function(id){return id;},
5 | load:loader.require
6 | };
7 | });
8 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/local.js:
--------------------------------------------------------------------------------
1 | define(['text!./resources/local.html'], function (localHtml) {
2 | return {
3 | localHtml: localHtml
4 | };
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/syncFromAsyncModuleDep.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests._base.loader.syncFromAsyncModuleDep");
2 | dojo.tests._base.loader.syncFromAsyncModuleDep.status= "OK";
3 |
--------------------------------------------------------------------------------
/tests/back.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.back", require.toUrl("./back.html"), 30000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/behavior.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.behavior", require.toUrl("./behavior.html"));
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/io/iframe.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.io.iframe", require.toUrl("./iframe.html"));
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/io/script.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.io.script", require.toUrl("./script.html"));
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/cldr/nls/fr-ch/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "currencyFormat": "¤ #,##0.00;¤-#,##0.00",
5 | "group": "'",
6 | "decimal": "."
7 | }
8 | //end v1.x content
9 | );
--------------------------------------------------------------------------------
/tests/_base/fx.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests._base.fx", require.toUrl("./fx.html"), 15000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/testModule.js:
--------------------------------------------------------------------------------
1 | //A sample module to use in the i18n build test.
2 | define(["i18n!nls/colors"], function (colors) {
3 | var red = colors.red;
4 | });
--------------------------------------------------------------------------------
/tests/_base/xhr.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests._base.xhr", require.toUrl("./xhr.html"), 60000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/cookie.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.cookie", require.toUrl("./cookie.html"), 30000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/html.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.html", require.toUrl("./html/test_set.html"), 30000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/nls/th/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | th: "ქართული ენაქართული ენაქართული ენაสวัสดีครับ/คะ",
5 | hello: "ภาษาไทย"
6 | }
7 | //end v1.x content
8 | );
9 |
--------------------------------------------------------------------------------
/tests/parser.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.parser", require.toUrl("./parser.html"), 30000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/touch.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.touch", require.toUrl("./test_touch.html"));
4 | }
5 | });
6 |
7 |
--------------------------------------------------------------------------------
/tests/window/viewportQuirks.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/assign2.js:
--------------------------------------------------------------------------------
1 | define(["module", "exports", "require"],
2 | function (module, exports, require) {
3 | module.exports = "assign2";
4 | });
5 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/func.js:
--------------------------------------------------------------------------------
1 | define("func",
2 | function () {
3 | return function () {
4 | return "You called a function";
5 | };
6 | }
7 | );
8 |
--------------------------------------------------------------------------------
/tests/io/iframeResponse.text.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/_base/window.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests._base.window", require.toUrl("./window.html"), 15000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/nls/es/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | es: "Español",
5 | hello: "Hola",
6 | hello_dojo: "¡${hello}, ${dojo}!"
7 | }
8 | //end v1.x content
9 | );
10 |
--------------------------------------------------------------------------------
/tests/io/iframeResponse.json.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/store/node1.1:
--------------------------------------------------------------------------------
1 | { id: 'node1.1',name:'node1.1', someProperty:'somePropertyA1', children: [
2 | { $ref: 'node1.1.1', name: 'node1.1.1'},
3 | { $ref: 'node1.1.2', name: 'node1.1.2'}
4 | ]}
5 |
--------------------------------------------------------------------------------
/tests/NodeList-data.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.NodeList-data", require.toUrl("./NodeList-data.html"), 30000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/coolio/calendar.js:
--------------------------------------------------------------------------------
1 | dojo.provide("coolio.calendar");
2 | dojo.require("dijit.Calendar");
3 |
4 | coolio.calendar= function(id){
5 | return new dijit.Calendar({}, dojo.byId(id));
6 | };
7 |
--------------------------------------------------------------------------------
/tests/_base/loader/coolio/calendar1.js:
--------------------------------------------------------------------------------
1 | dojo.provide("coolio.calendar1");
2 | dojo.require("dijit.Calendar");
3 |
4 | coolio.calendar1= function(id){
5 | return new dijit.Calendar({}, dojo.byId(id));
6 | };
7 |
--------------------------------------------------------------------------------
/tests/NodeList-traverse.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.NodeList-traverse", require.toUrl("./NodeList-traverse.html"), 30000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/assign.js:
--------------------------------------------------------------------------------
1 | define("assign",
2 | ["require", "exports", "module"],
3 | function (require, exports, module) {
4 | module.exports = "assign";
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/vanilla.js:
--------------------------------------------------------------------------------
1 | define("vanilla",
2 | ["require", "exports", "module"],
3 | function (require, exports, module) {
4 | exports.name = "vanilla";
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/paths/first.js/first.js:
--------------------------------------------------------------------------------
1 | globalCounter += 1;
2 |
3 | define(['./second'], function (second) {
4 | globalCounter += 1;
5 | return {
6 | load: second
7 | };
8 | });
9 |
--------------------------------------------------------------------------------
/tests/NodeList-manipulate.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.NodeList-manipulate", require.toUrl("./NodeList-manipulate.html"), 30000);
4 | }
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/funcSet.js:
--------------------------------------------------------------------------------
1 | define("funcSet",
2 | ["require", "exports", "module"],
3 | function (require, exports, module) {
4 | module.setExports("funcSet");
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/scrollingQuirksIframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/cldr/nls/fr-ch/gregorian.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "timeFormat-full": "HH.mm:ss 'h' zzzz",
5 | "dateFormat-full": "EEEE, d MMMM y",
6 | "dateFormat-short": "dd.MM.yy"
7 | }
8 | //end v1.x content
9 | );
--------------------------------------------------------------------------------
/tests/io/iframeResponse.js.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/nls/colors.js:
--------------------------------------------------------------------------------
1 | define({
2 | "root": {
3 | red: "red",
4 | blue: "blue",
5 | green: "green"
6 | },
7 | "en-us-surfer": true,
8 | "fr": true
9 | });
10 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/uniques/one.js:
--------------------------------------------------------------------------------
1 | define(function (require) {
2 | return {
3 | name: "one",
4 | threeName: require("three").name,
5 | threeName2: require("three").name
6 | };
7 | });
8 |
9 |
--------------------------------------------------------------------------------
/tests/store.js:
--------------------------------------------------------------------------------
1 | define([
2 | "dojo/tests/store/Memory",
3 | "dojo/tests/store/DataStore",
4 | "dojo/tests/store/Observable",
5 | "dojo/tests/store/Cache",
6 | "dojo/has!host-browser?dojo/tests/store/JsonRest"], 1);
7 |
8 |
9 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/urlfetch/two.js:
--------------------------------------------------------------------------------
1 | define("one", {
2 | name: "one"
3 | });
4 |
5 | define("two", ["one"], function (one) {
6 | return {
7 | name: "two",
8 | oneName: "one"
9 | };
10 | });
11 |
--------------------------------------------------------------------------------
/tests/data.js:
--------------------------------------------------------------------------------
1 | define([
2 | "dojo",
3 | "./data/utils",
4 | "./data/ItemFileReadStore",
5 | "./data/ItemFileWriteStore",
6 | "./data/ObjectStore"], function(dojo) {
7 | dojo.config.usePlainJson = true;
8 | });
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/_base/loader/amdModuleDep.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModuleDep");
2 | define([], function(){
3 | dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModuleDep");
4 | return {status:"OK"};
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/amdModuleDep1.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModuleDep1");
2 | define([], function(){
3 | dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModuleDep1");
4 | return {status:"OK"};
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/amdModuleDep2.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModuleDep2");
2 | define([], function(){
3 | dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModuleDep2");
4 | return {status:"OK"};
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/amdModule.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModule");
2 | define(["./amdModuleDep"], function(){
3 | dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModule");
4 | return {status:"OK"};
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/modules/full.js:
--------------------------------------------------------------------------------
1 | define("dojo/tests/_base/loader/modules/full", ["./anon", "../a", "./wrapped", "require"], function (anon, a, wrapped, require) {
2 | return {
3 | twiceTheAnswer: a.number + require("../a").number
4 | };
5 | });
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/implicitModule.js:
--------------------------------------------------------------------------------
1 | define(function (require, exports, module) {
2 | if (module.exports) {
3 | module.exports = function () {
4 | return 'implicitModule';
5 | };
6 | }
7 | });
8 |
--------------------------------------------------------------------------------
/tests/_base/scrollingStrictIframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/tests/_base/loader/amdModule1.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModule1");
2 | define(["./amdModuleDep1"], function(){
3 | dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModule1");
4 | return {status:"OK"};
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/amdModule2.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("defining-dojo.tests._base.loader.amdModule2");
2 | define(["./amdModuleDep"], function(){
3 | dojoCdnTestLog.push("factory-dojo.tests._base.loader.amdModule2");
4 | return {status:"OK"};
5 | });
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/urlfetch/three.js:
--------------------------------------------------------------------------------
1 | define("three", {
2 | name: "three"
3 | });
4 |
5 | define("four", ["three"], function (three) {
6 | return {
7 | name: "four",
8 | threeName: "three"
9 | };
10 | });
11 |
--------------------------------------------------------------------------------
/tests/fx.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests.fx", require.toUrl("./fx.html"), 30000);
4 | doh.register("tests.NodeList-fx", require.toUrl("./NodeList-fx.html"), 30000);
5 | }
6 | });
7 |
8 |
--------------------------------------------------------------------------------
/tests/_base/xhrDummyMethod.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/paths/first.js/second.js:
--------------------------------------------------------------------------------
1 | define(['./first'], function () {
2 | return function (id, parentRequire, loaded) {
3 | loaded({
4 | name: 'first',
5 | secondName: 'second'
6 | });
7 | };
8 | });
9 |
--------------------------------------------------------------------------------
/tests/_base/timeout.php:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/cache.js:
--------------------------------------------------------------------------------
1 | define(["./_base/kernel", "./text"], function(dojo, text){
2 | // module:
3 | // dojo/cache
4 | // summary:
5 | // The module defines dojo.cache by loading dojo/text.
6 |
7 | //dojo.cache is defined in dojo/text
8 | return dojo.cache;
9 | });
10 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/uniques/two.js:
--------------------------------------------------------------------------------
1 | define("two", ["one", "three", "one"], function (one, three, one2) {
2 | return {
3 | name: "two",
4 | oneName: one.name,
5 | oneName2: one2.name,
6 | threeName: three.name
7 | };
8 | });
9 |
--------------------------------------------------------------------------------
/tests/_base/query.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests._base.query", require.toUrl("./query.html"), 60000);
4 | doh.register("tests._base.NodeList", require.toUrl("./NodeList.html"), 60000);
5 | }
6 | });
7 |
--------------------------------------------------------------------------------
/tests/uacss.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 |
3 | doh.register("tests.uacss.sniffQuirks", require.toUrl("./uacss/sniffQuirks.html"));
4 | doh.register("tests.uacss.sniffStandards", require.toUrl("./uacss/sniffStandards.html"));
5 |
6 | });
7 |
8 |
--------------------------------------------------------------------------------
/cldr/nls/it/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "decimalFormat": "#,##0.###",
5 | "group": ".",
6 | "scientificFormat": "#E0",
7 | "percentFormat": "#,##0%",
8 | "currencyFormat": "¤ #,##0.00",
9 | "decimal": ","
10 | }
11 | //end v1.x content
12 | );
--------------------------------------------------------------------------------
/cldr/nls/ja/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "decimalFormat": "#,##0.###",
5 | "group": ",",
6 | "scientificFormat": "#E0",
7 | "percentFormat": "#,##0%",
8 | "currencyFormat": "¤#,##0.00",
9 | "decimal": "."
10 | }
11 | //end v1.x content
12 | );
--------------------------------------------------------------------------------
/cldr/nls/zh/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "decimalFormat": "#,##0.###",
5 | "group": ",",
6 | "scientificFormat": "#E0",
7 | "percentFormat": "#,##0%",
8 | "currencyFormat": "¤#,##0.00",
9 | "decimal": "."
10 | }
11 | //end v1.x content
12 | );
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/dos.js:
--------------------------------------------------------------------------------
1 | define("dos",
2 | ["tres"],
3 | function(tres) {
4 | return {
5 | name: "dos",
6 | doSomething: function() {
7 | return {
8 | tresName: tres.name
9 | };
10 | }
11 | };
12 | }
13 | );
14 |
--------------------------------------------------------------------------------
/tests/_base/loader/syncModuleDep.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModuleDep");
2 | dojo.provide("dojo.tests._base.loader.syncModuleDep");
3 | dojo.tests._base.loader.syncModuleDep.status= "OK";
4 | dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModuleDep");
5 |
--------------------------------------------------------------------------------
/tests/_base/loader/syncModuleDep2.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModuleDep2");
2 | dojo.provide("dojo.tests._base.loader.syncModuleDep");
3 | dojo.tests._base.loader.syncModuleDep.status= "OK";
4 | dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModuleDep2");
5 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/one.js:
--------------------------------------------------------------------------------
1 | define("one",
2 | ["require", "two"],
3 | function(require) {
4 | var one = {
5 | size: "large",
6 | doSomething: function() {
7 | return require("two");
8 | }
9 | };
10 |
11 | return one;
12 | }
13 | );
14 |
--------------------------------------------------------------------------------
/tests/_base/loader/syncModuleDep1.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModuleDep1");
2 | dojo.provide("dojo.tests._base.loader.syncModuleDep1");
3 | dojo.tests._base.loader.syncModuleDep1.status= "OK";
4 | dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModuleDep1");
5 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/resources/sample.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | sample.html
5 |
6 |
7 | Hello World!
8 |
9 |
--------------------------------------------------------------------------------
/tests.js:
--------------------------------------------------------------------------------
1 | //This file is the command-line entry point for running the tests in
2 | //Rhino and Spidermonkey.
3 |
4 | /*=====
5 | dojo.tests = {
6 | // summary: D.O.H. Test files for Dojo unit testing.
7 | };
8 | =====*/
9 |
10 | load("dojo.js");
11 | load("tests/runner.js");
12 | tests.run();
13 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/subwidget.js:
--------------------------------------------------------------------------------
1 | define("subwidget",
2 | ["text!subwidget.html!strip", "text!subwidget2.html"],
3 | function(template, template2) {
4 | return {
5 | name: "subwidget",
6 | template: template,
7 | template2: template2
8 | };
9 | }
10 | );
11 |
--------------------------------------------------------------------------------
/tests/_base/loader/syncFromAsyncModule.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests._base.loader.syncFromAsyncModule");
2 | dojo.declare("dojo.tests._base.loader.syncFromAsyncModule", null, {});
3 | dojo.tests._base.loader.syncFromAsyncModule.status= "OK";
4 | dojo.require("dojo.tests._base.loader.syncFromAsyncModuleDep");
5 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/two.js:
--------------------------------------------------------------------------------
1 | define("two",
2 | ["require", "one"],
3 | function(require, one) {
4 | return {
5 | size: "small",
6 | color: "redtwo",
7 | doSomething: function() {
8 | return require("one").doSomething();
9 | }
10 | };
11 | }
12 | );
13 |
--------------------------------------------------------------------------------
/tests/_base/loader/xdomain/local1-dep.js:
--------------------------------------------------------------------------------
1 | xdomainExecSequence.push("local1-dep-1");
2 | var x1= dojo.provide("dojo.tests._base.loader.xdomain.local1-dep");
3 | dojo.getObject("dojo.tests._base.loader.xdomain.local1-dep").status= "dojo.tests._base.loader.xdomain.local1-dep-ok";
4 | xdomainExecSequence.push("local1-dep-2");
5 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/subwidget.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | sample.html
5 |
6 |
7 |
This is a subwidget
8 |
9 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/uno.js:
--------------------------------------------------------------------------------
1 | define("uno",
2 | ["dos", "tres"],
3 | function(dos, tres) {
4 | return {
5 | name: "uno",
6 | doSomething: function() {
7 | return {
8 | dosName: dos.name,
9 | tresName: tres.name
10 | };
11 | }
12 | };
13 | }
14 | );
15 |
--------------------------------------------------------------------------------
/tests/_base/loader/syncModule2.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModule2");
2 | dojo.provide("dojo.tests._base.loader.syncModule");
3 | dojo.tests._base.loader.syncModule.status= "OK";
4 | dojo.require("dojo.tests._base.loader.syncModuleDep");
5 | dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModule2");
6 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/simpleReturn.js:
--------------------------------------------------------------------------------
1 | //This file does not use exports, just
2 | //return, but need to test that it does not
3 | //automatically get an exports object assigned
4 | define(
5 | function () {
6 | return function () {
7 | return 'simpleReturn';
8 | };
9 | }
10 | );
11 |
--------------------------------------------------------------------------------
/tests/_base/loader/syncModule1.js:
--------------------------------------------------------------------------------
1 | dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModule1");
2 | dojo.provide("dojo.tests._base.loader.syncModule1");
3 | dojo.tests._base.loader.syncModule1.status= "OK";
4 | dojo.require("dojo.tests._base.loader.syncModuleDep1");
5 | dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModule1");
6 |
--------------------------------------------------------------------------------
/cldr/nls/zh-tw/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "USD_symbol": "$",
5 | "EUR_displayName": "歐元",
6 | "HKD_displayName": "港幣",
7 | "CAD_displayName": "加幣",
8 | "JPY_displayName": "日圓",
9 | "GBP_displayName": "英鎊",
10 | "AUD_displayName": "澳幣",
11 | "CNY_displayName": "人民幣"
12 | }
13 | //end v1.x content
14 | );
--------------------------------------------------------------------------------
/tests/smoke-dojo-sie.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | Minimum Dojo Application
6 |
7 |
8 |
9 | hello, world
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/window.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | doh.register("tests.window.viewport", require.toUrl("./window/viewport.html"));
3 | doh.register("tests.window.viewportQuirks", require.toUrl("./window/viewportQuirks.html"));
4 | doh.register("tests.window.test_scroll", require.toUrl("./window/test_scroll.html"), 99999999);
5 | });
--------------------------------------------------------------------------------
/tests/TODO:
--------------------------------------------------------------------------------
1 | This file lists tests that need to be implemented or expanded. See ticket #3121
2 | for changes related to things listed here.
3 |
4 | Tests to add:
5 | -------------
6 | * add tests for dojo.place()
7 |
8 | Tests to improve:
9 | -----------------
10 | * NodeList isn't testing several of its public methods (place, orphan, adopt, etc.)
11 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/widget.js:
--------------------------------------------------------------------------------
1 | define("widget",
2 | ["subwidget", "text!widget.html"],
3 | function(subwidget, template) {
4 | return {
5 | subWidgetName: subwidget.name,
6 | subWidgetTemplate: subwidget.template,
7 | subWidgetTemplate2: subwidget.template2,
8 | template: template
9 | };
10 | }
11 | );
12 |
--------------------------------------------------------------------------------
/tests/data/ItemFileReadStore.js:
--------------------------------------------------------------------------------
1 | // FIXME: this test assumes the existence of the global object "tests"
2 | tests= typeof tests=="undefined" ? {} : tests;
3 |
4 | define(["./readOnlyItemFileTestTemplates", "dojo/data/ItemFileReadStore"], function() {
5 | tests.data.readOnlyItemFileTestTemplates.registerTestsForDatastore("dojo.data.ItemFileReadStore");
6 | });
7 |
8 |
--------------------------------------------------------------------------------
/cldr/nls/zh-hk/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "港幣",
5 | "HKD_symbol": "HK$",
6 | "CAD_displayName": "加幣",
7 | "CNY_displayName": "人民幣",
8 | "USD_symbol": "$",
9 | "AUD_displayName": "澳幣",
10 | "JPY_displayName": "日圓",
11 | "GBP_displayName": "英鎊",
12 | "EUR_displayName": "歐元"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/tests/_base/loader/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/relative/foo/bar/one.js:
--------------------------------------------------------------------------------
1 | define("foo/bar/one",
2 | ["require", "./two", "../three", "text!./message.txt"],
3 | function (require, two, three, message) {
4 | return {
5 | name: "one",
6 | twoName: two.name,
7 | threeName: three.name,
8 | message: message
9 | };
10 | });
11 |
--------------------------------------------------------------------------------
/tests/_base/loader/coolio/calendar-amd.js:
--------------------------------------------------------------------------------
1 | define(["dojo", "dijit/Calendar"], function(dojo, calendar){
2 | // a coolio/calendarAsync-created calendar will be created in the cdojo and cdijit instances
3 | // but, during dev, this is a detail we can ignore...the config makes in just work
4 | return function(id){
5 | return new calendar({}, dojo.byId(id));
6 | };
7 | });
8 |
--------------------------------------------------------------------------------
/tests/data/runTests.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | dojo.data D.O.H. Unit Test Runner
5 |
6 |
7 | Redirecting to D.O.H runner.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/runTests.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Dojo CORE and BASE D.O.H. Unit Test Runner
5 |
6 |
7 | Redirecting to D.O.H runner.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/store/runTests.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Dojo Store D.O.H. Unit Test Runner
5 |
6 |
7 | Redirecting to D.O.H runner.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/nls/ar/salutations.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | /**/
4 | // The above is a workaround for Konqueror and Safari (see bug #1010)
5 | // The parentheses are optional, but make this file a valid JS expression for
6 | // tools to inspect
7 | ({
8 | ar: "العربية",
9 | hello: "ﺎﺑﺣﺮﻣ"
10 | })
11 | //end v1.x content
12 | );
13 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/funcThree.js:
--------------------------------------------------------------------------------
1 | define("funcThree",
2 | ["funcFour"],
3 | function (four) {
4 | var three = function (arg) {
5 | return arg + "-" + require("funcFour").suffix();
6 | };
7 |
8 | three.suffix = function () {
9 | return "THREE_SUFFIX";
10 | };
11 |
12 | return three;
13 | }
14 | );
15 |
--------------------------------------------------------------------------------
/tests/cache/object.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Hello World
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tests/resources/testClass.php:
--------------------------------------------------------------------------------
1 | " . $somestring . "";
6 | }
7 |
8 | function contentB () {
9 | return "Content B
";
10 | }
11 |
12 | function contentC () {
13 | return "Content C
";
14 | }
15 |
16 | function add($x,$y) {
17 | return $x + $y;
18 | }
19 | }
20 | ?>
21 |
--------------------------------------------------------------------------------
/tests/_base/runTests.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Dojo CORE and BASE D.O.H. Unit Test Runner
5 |
6 |
7 | Redirecting to D.O.H runner.
8 |
9 |
10 |
--------------------------------------------------------------------------------
/tests/cache/sanitized.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Hello World
10 |
11 |
12 |
--------------------------------------------------------------------------------
/cldr/nls/zh-hant/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "港幣",
5 | "CHF_displayName": "瑞士法郎",
6 | "CAD_displayName": "加幣",
7 | "CNY_displayName": "人民幣",
8 | "USD_symbol": "$",
9 | "AUD_displayName": "澳幣",
10 | "JPY_displayName": "日圓",
11 | "CNY_symbol": "¥",
12 | "GBP_displayName": "英鎊",
13 | "EUR_displayName": "歐元"
14 | }
15 | //end v1.x content
16 | );
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/funcFour.js:
--------------------------------------------------------------------------------
1 | define("funcFour",
2 | ["require", "funcThree"],
3 | function (require) {
4 | var four = function (arg) {
5 | return "FOUR called with " + arg;
6 | };
7 |
8 | four.suffix = function () {
9 | return require("funcThree").suffix();
10 | };
11 |
12 | return four;
13 | }
14 | );
15 |
--------------------------------------------------------------------------------
/cldr/nls/ko/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "홍콩 달러",
5 | "CHF_displayName": "스위스 프랑",
6 | "CAD_displayName": "캐나다 달러",
7 | "CNY_displayName": "중국 위안 인민폐",
8 | "AUD_displayName": "호주 달러",
9 | "JPY_displayName": "일본 엔화",
10 | "USD_displayName": "미국 달러",
11 | "GBP_displayName": "영국령 파운드 스털링",
12 | "EUR_displayName": "유로화"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/zh/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "港元",
5 | "CHF_displayName": "瑞士法郎",
6 | "CAD_displayName": "加拿大元",
7 | "CNY_displayName": "人民币",
8 | "AUD_displayName": "澳大利亚元",
9 | "JPY_displayName": "日元",
10 | "USD_displayName": "美元",
11 | "CNY_symbol": "¥",
12 | "GBP_displayName": "英镑",
13 | "EUR_displayName": "欧元"
14 | }
15 | //end v1.x content
16 | );
--------------------------------------------------------------------------------
/tests/_base/loader/hostenv_spidermonkey.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests._base._loader.hostenv_spidermonkey");
2 |
3 | tests.register("tests._base._loader.hostenv_spidermonkey",
4 | [
5 | function getText(t){
6 | var filePath = dojo.moduleUrl("tests._base._loader", "getText.txt");
7 | var text = readText(filePath);
8 | t.assertEqual("dojo._getText() test data", text);
9 | }
10 | ]
11 | );
12 |
--------------------------------------------------------------------------------
/tests/_base/loader/xdomain/local1-browser.js:
--------------------------------------------------------------------------------
1 | xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-browser-1");
2 | var x1= dojo.provide("dojo.tests._base.loader.xdomain.local1-browser");
3 | dojo.getObject("dojo.tests._base.loader.xdomain.local1-browser").status= "dojo.tests._base.loader.xdomain.local1-browser-ok";
4 | xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-browser-2");
5 |
--------------------------------------------------------------------------------
/cldr/nls/ar/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": "٬",
5 | "percentSign": "٪",
6 | "exponential": "اس",
7 | "list": "؛",
8 | "infinity": "∞",
9 | "minusSign": "-",
10 | "decimal": "٫",
11 | "nan": "ليس رقم",
12 | "perMille": "؉",
13 | "decimalFormat": "#,##0.###;#,##0.###-",
14 | "currencyFormat": "¤ #,##0.00;¤ #,##0.00-",
15 | "plusSign": "+"
16 | }
17 | //end v1.x content
18 | );
--------------------------------------------------------------------------------
/tests/_base/window_iframe_quirks.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Quirks mode frame
4 |
11 |
12 |
--------------------------------------------------------------------------------
/jaxer.js:
--------------------------------------------------------------------------------
1 | define(["./main"], function(dojo) {
2 | // module:
3 | // dojo/jaxer
4 | // summary:
5 | // TODOC
6 |
7 |
8 | if(typeof print == "function"){
9 | console.debug = Jaxer.Log.debug;
10 | console.warn = Jaxer.Log.warn;
11 | console.error = Jaxer.Log.error;
12 | console.info = Jaxer.Log.info;
13 | console.log = Jaxer.Log.warn;
14 | }
15 |
16 | onserverload = dojo._loadInit;
17 |
18 | return dojo;
19 | });
20 |
--------------------------------------------------------------------------------
/tests/_base/loader/modules/wrapped.js:
--------------------------------------------------------------------------------
1 | if(require.has("dojo-amd-factory-scan")){
2 |
3 | define(function (require, exports, module) {
4 | exports.five = require("./data").five;
5 | exports.exports = module.exports;
6 | });
7 |
8 | }else{
9 |
10 | define(["require", "exports", "module"], function (require, exports, module) {
11 | exports.five = require("./data").five;
12 | exports.exports = module.exports;
13 | });
14 |
15 | }
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/dataMain.js:
--------------------------------------------------------------------------------
1 | require({
2 | baseUrl: "./"
3 | },
4 | ["require", "simple", "doh"],
5 | function(require, simple, doh) {
6 | doh.register(
7 | "dataMain",
8 | [
9 | function dataMain(t){
10 | t.is("blue", simple.color);
11 | }
12 | ]
13 | );
14 | doh.run();
15 | }
16 | );
17 |
--------------------------------------------------------------------------------
/tests/_base/loader/xdomain/local3.js:
--------------------------------------------------------------------------------
1 | xdomainExecSequence.push("local3-1");
2 | dojo.provide("dojo.tests._base.loader.xdomain.local3");
3 | xdomainExecSequence.push("local3-2");
4 |
5 | // load a local module that will have to be transformed
6 | //debugger;
7 | dojo.require("dojo.tests._base.loader.xdomain.local1");
8 | xdomainExecSequence.push("local3-3");
9 |
10 | dojo.tests._base.loader.xdomain.local3.status = "local3-loaded";
11 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/dataMain.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: data-main Test
5 |
6 |
7 |
8 |
9 | require.js: data-main Test
10 | Check console for messages
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/funcOne.js:
--------------------------------------------------------------------------------
1 | define("funcOne",
2 | ["require", "funcTwo"],
3 | function (require) {
4 | var one = function (name) {
5 | this.name = name;
6 | };
7 |
8 | one.prototype.getName = function () {
9 | var inst = new (require("funcTwo"))("-NESTED");
10 | return this.name + inst.name;
11 | };
12 |
13 | return one;
14 | }
15 | );
16 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/funcTwo.js:
--------------------------------------------------------------------------------
1 | define("funcTwo",
2 | ["require", "funcOne"],
3 | function (require) {
4 | var two = function (name) {
5 | this.name = name;
6 | this.one = new (require("funcOne"))("ONE");
7 | };
8 |
9 | two.prototype.oneName = function () {
10 | return this.one.getName();
11 | };
12 |
13 | return two;
14 | }
15 | );
16 |
--------------------------------------------------------------------------------
/cldr/nls/el/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "e",
7 | "percentFormat": "#,##0%",
8 | "list": ",",
9 | "infinity": "∞",
10 | "patternDigit": "#",
11 | "minusSign": "-",
12 | "decimal": ",",
13 | "nan": "NaN",
14 | "nativeZeroDigit": "0",
15 | "perMille": "‰",
16 | "currencyFormat": "#,##0.00 ¤",
17 | "plusSign": "+"
18 | }
19 | //end v1.x content
20 | );
--------------------------------------------------------------------------------
/cldr/nls/he/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "דולר הונג קונגי",
5 | "CHF_displayName": "פרנק שוויצרי",
6 | "CAD_displayName": "דולר קנדי",
7 | "CNY_displayName": "יואן רנמינבי סיני",
8 | "AUD_displayName": "דולר אוסטרלי",
9 | "JPY_displayName": "ין יפני",
10 | "USD_displayName": "דולר אמריקאי",
11 | "GBP_displayName": "לירה שטרלינג",
12 | "EUR_displayName": "אירו"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/tests/_base/loader/declareStepsOnProvide.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests._base.loader.declareStepsOnProvide");
2 | dojo.provide("dojo.tests._base.loader.declareStepsOnProvide1");
3 |
4 | dojo.declare("dojo.tests._base.loader.declareStepsOnProvide", [], {
5 | status:function(){
6 | return "OK";
7 | }
8 | });
9 |
10 | dojo.declare("dojo.tests._base.loader.declareStepsOnProvide1", [], {
11 | status:function(){
12 | return "OK-1";
13 | }
14 | });
15 |
--------------------------------------------------------------------------------
/tests/io/iframeResponse.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | FOO
5 | BAR
6 | BAZ
7 | BAT
8 |
9 | bar){ /* whatever */ }
13 | }
14 | }
15 | ]]>
16 | something else
17 |
18 |
--------------------------------------------------------------------------------
/tests/regexp.js:
--------------------------------------------------------------------------------
1 | define(["../main", "doh", "../regexp"], function(dojo, doh){
2 |
3 | doh.register("tests.regexp",
4 | function test_regexp_escape(t){
5 | t.assertTrue(new RegExp(dojo.regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^")).test("TEST\f\b\n\t\r+.$?*|{}()[]\\/^TEST"));
6 | t.assertTrue(new RegExp(dojo.regexp.escapeString("\f\b\n\t\r+.$?*|{}()[]\\/^", ".")).test("TEST\f\b\n\t\r+X$?*|{}()[]\\/^TEST"));
7 | }
8 | );
9 |
10 |
11 | });
12 |
--------------------------------------------------------------------------------
/cldr/nls/cs/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Dolar hongkongský",
5 | "CHF_displayName": "Frank švýcarský",
6 | "CAD_displayName": "Dolar kanadský",
7 | "CNY_displayName": "Juan renminbi",
8 | "AUD_displayName": "Dolar australský",
9 | "JPY_displayName": "Jen",
10 | "USD_displayName": "Dolar americký",
11 | "GBP_displayName": "Libra šterlinků",
12 | "EUR_displayName": "Euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/tests/_base/loader/xdomain/local1-runtimeDependent1.js:
--------------------------------------------------------------------------------
1 | xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-runtimeDependent1-1");
2 | var x1= dojo.provide("dojo.tests._base.loader.xdomain.local1-runtimeDependent1");
3 | dojo.getObject("dojo.tests._base.loader.xdomain.local1-runtimeDependent1").status= "dojo.tests._base.loader.xdomain.local1-runtimeDependent1-ok";
4 | xdomainExecSequence.push("dojo.tests._base.loader.xdomain.local1-runtimeDependent1-2");
5 |
--------------------------------------------------------------------------------
/tests/cldr.js:
--------------------------------------------------------------------------------
1 | define(["..", "doh", "../cldr/supplemental", "../cldr/monetary"], function(dojo, doh){
2 | doh.register("tests.cldr", [
3 | function test_date_getWeekend(t){
4 | t.is(6, dojo.cldr.supplemental.getWeekend('en-us').start);
5 | t.is(0, dojo.cldr.supplemental.getWeekend('en-us').end);
6 | t.is(5, dojo.cldr.supplemental.getWeekend('he-il').start);
7 | t.is(6, dojo.cldr.supplemental.getWeekend('he-il').end);
8 | }
9 | ]);
10 | });
11 |
12 |
--------------------------------------------------------------------------------
/cldr/nls/ar/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "دولار هونج كونج",
5 | "CHF_displayName": "فرنك سويسري",
6 | "CAD_displayName": "دولار كندي",
7 | "CNY_displayName": "يوان صيني",
8 | "AUD_displayName": "دولار أسترالي",
9 | "JPY_displayName": "ين ياباني",
10 | "USD_displayName": "دولار أمريكي",
11 | "CNY_symbol": "ي.ص",
12 | "GBP_displayName": "جنيه إسترليني",
13 | "EUR_displayName": "يورو"
14 | }
15 | //end v1.x content
16 | );
--------------------------------------------------------------------------------
/cldr/nls/ja/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "香港ドル",
5 | "CHF_displayName": "スイス フラン",
6 | "JPY_symbol": "¥",
7 | "CAD_displayName": "カナダ ドル",
8 | "CNY_displayName": "中国人民元",
9 | "USD_symbol": "$",
10 | "AUD_displayName": "オーストラリア ドル",
11 | "JPY_displayName": "日本円",
12 | "USD_displayName": "米ドル",
13 | "CNY_symbol": "元",
14 | "GBP_displayName": "英国ポンド",
15 | "EUR_displayName": "ユーロ"
16 | }
17 | //end v1.x content
18 | );
--------------------------------------------------------------------------------
/cldr/nls/ro/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "dolar Hong Kong",
5 | "CHF_displayName": "franc elvețian",
6 | "CAD_displayName": "dolar canadian",
7 | "CNY_displayName": "yuan renminbi chinezesc",
8 | "AUD_displayName": "dolar australian",
9 | "JPY_displayName": "yen japonez",
10 | "USD_displayName": "dolar american",
11 | "GBP_displayName": "liră sterlină",
12 | "EUR_displayName": "euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/sk/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hong Kongský dolár",
5 | "CHF_displayName": "Švajčiarský frank",
6 | "CAD_displayName": "Kanadský dolár",
7 | "CNY_displayName": "Čínsky Yuan Renminbi",
8 | "AUD_displayName": "Austrálsky dolár",
9 | "JPY_displayName": "Japonský yen",
10 | "USD_displayName": "US dolár",
11 | "GBP_displayName": "Britská libra",
12 | "EUR_displayName": "Euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/tests/_base/loader/syncModule.js:
--------------------------------------------------------------------------------
1 | if (typeof dojoCdnTestLog=="undefined"){
2 | dojoCdnTestLog= [];
3 | }
4 | dojoCdnTestLog.push("in-dojo.tests._base.loader.syncModule");
5 | dojo.provide("dojo.tests._base.loader.syncModule");
6 | dojo.declare("dojo.tests._base.loader.syncModule", null, {});
7 | dojo.tests._base.loader.syncModule.status= "OK";
8 | dojo.require("dojo.tests._base.loader.syncModuleDep");
9 | dojoCdnTestLog.push("out-dojo.tests._base.loader.syncModule");
10 |
--------------------------------------------------------------------------------
/cldr/nls/hu/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "list": ";",
9 | "infinity": "∞",
10 | "patternDigit": "#",
11 | "minusSign": "-",
12 | "decimal": ",",
13 | "nan": "NaN",
14 | "nativeZeroDigit": "0",
15 | "perMille": "‰",
16 | "decimalFormat": "#,##0.###",
17 | "currencyFormat": "#,##0.00 ¤",
18 | "plusSign": "+"
19 | }
20 | //end v1.x content
21 | );
--------------------------------------------------------------------------------
/cldr/nls/pl/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "dolar hongkoński",
5 | "CHF_displayName": "frank szwajcarski",
6 | "CAD_displayName": "dolar kanadyjski",
7 | "CNY_displayName": "juan renminbi",
8 | "AUD_displayName": "dolar australijski",
9 | "JPY_displayName": "jen japoński",
10 | "USD_displayName": "dolar amerykański ",
11 | "GBP_displayName": "funt szterling",
12 | "EUR_displayName": "euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/es/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "minusSign": "-",
12 | "decimal": ",",
13 | "nan": "NaN",
14 | "nativeZeroDigit": "0",
15 | "perMille": "‰",
16 | "decimalFormat": "#,##0.###",
17 | "currencyFormat": "¤ #,##0.00",
18 | "plusSign": "+"
19 | }
20 | //end v1.x content
21 | );
--------------------------------------------------------------------------------
/dnd/AutoSource.js:
--------------------------------------------------------------------------------
1 | define(["../_base/declare", "./Source"], function(declare, Source){
2 | /*===== Source = dojo.dnd.Source =====*/
3 | return declare("dojo.dnd.AutoSource", Source, {
4 | // summary:
5 | // a source that syncs its DnD nodes by default
6 |
7 | constructor: function(/*===== node, params =====*/){
8 | // summary:
9 | // constructor of the AutoSource --- see the Source constructor for details
10 | this.autoSync = true;
11 | }
12 | });
13 | });
14 |
--------------------------------------------------------------------------------
/tests/store/treeTestRoot:
--------------------------------------------------------------------------------
1 | [
2 | { id: 'node1', name:'node1', someProperty:'somePropertyA', children:[
3 | { $ref: 'node1.1', name: 'node1.1', children: true},
4 | { $ref: 'node1.2', name: 'node1.2'}
5 | ]},
6 | { id: 'node2', name:'node2', someProperty:'somePropertyB'},
7 | { id: 'node3', name:'node3', someProperty:'somePropertyC'},
8 | { id: 'node4', name:'node4', someProperty:'somePropertyA'},
9 | { id: 'node5', name:'node5', someProperty:'somePropertyB'}
10 | ]
11 |
--------------------------------------------------------------------------------
/cldr/nls/ca/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "dòlar de Hong Kong",
5 | "CHF_displayName": "franc suís",
6 | "CAD_displayName": "dòlar canadenc",
7 | "CNY_displayName": "iuan renmimbi xinès",
8 | "AUD_displayName": "dòlar australià",
9 | "JPY_displayName": "ien japonès",
10 | "USD_displayName": "dòlar dels Estats Units",
11 | "GBP_displayName": "lliura esterlina britànica",
12 | "EUR_displayName": "euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/el/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Δολάριο Χονγκ Κονγκ",
5 | "CHF_displayName": "Φράγκο Ελβετίας",
6 | "CAD_displayName": "Δολάριο Καναδά",
7 | "CNY_displayName": "Γιουάν Ρενμίμπι Κίνας",
8 | "AUD_displayName": "Δολάριο Αυστραλίας",
9 | "JPY_displayName": "Γιεν Ιαπωνίας",
10 | "USD_displayName": "Δολάριο ΗΠΑ",
11 | "GBP_displayName": "Λίρα Στερλίνα Βρετανίας",
12 | "EUR_displayName": "Ευρώ"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/it/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Dollaro di Hong Kong",
5 | "CHF_displayName": "Franco Svizzero",
6 | "CAD_displayName": "Dollaro Canadese",
7 | "CNY_displayName": "Renmimbi Cinese",
8 | "AUD_displayName": "Dollaro Australiano",
9 | "JPY_displayName": "Yen Giapponese",
10 | "USD_displayName": "Dollaro Statunitense",
11 | "GBP_displayName": "Sterlina Inglese",
12 | "EUR_displayName": "Euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/nl/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hongkongse dollar",
5 | "CHF_displayName": "Zwitserse franc",
6 | "CAD_displayName": "Canadese dollar",
7 | "CNY_displayName": "Chinese yuan renminbi",
8 | "AUD_displayName": "Australische dollar",
9 | "JPY_displayName": "Japanse yen",
10 | "USD_displayName": "Amerikaanse dollar",
11 | "GBP_displayName": "Brits pond sterling",
12 | "EUR_displayName": "Euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/circular.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Circular Test
5 |
6 |
7 |
8 |
9 |
10 | require.js: Circular Test
11 | Check console for messages
12 |
13 |
14 |
--------------------------------------------------------------------------------
/cldr/nls/es/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "dólar de Hong Kong",
5 | "CHF_displayName": "franco suizo",
6 | "CAD_displayName": "dólar canadiense",
7 | "CNY_displayName": "yuan renminbi chino",
8 | "AUD_displayName": "dólar australiano",
9 | "JPY_displayName": "yen japonés",
10 | "USD_displayName": "dólar estadounidense",
11 | "GBP_displayName": "libra esterlina británica",
12 | "EUR_displayName": "euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/pt/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Dólar de Hong Kong",
5 | "CHF_displayName": "Franco suíço",
6 | "CAD_displayName": "Dólar canadense",
7 | "CNY_displayName": "Yuan Renminbi chinês",
8 | "AUD_displayName": "Dólar australiano",
9 | "JPY_displayName": "Iene japonês",
10 | "USD_displayName": "Dólar norte-americano",
11 | "GBP_displayName": "Libra esterlina britânica",
12 | "EUR_displayName": "Euro"
13 | }
14 | //end v1.x content
15 | );
--------------------------------------------------------------------------------
/cldr/nls/ru/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nativeZeroDigit": "0",
15 | "perMille": "‰",
16 | "decimalFormat": "#,##0.###",
17 | "currencyFormat": "#,##0.00 ¤",
18 | "plusSign": "+"
19 | }
20 | //end v1.x content
21 | );
--------------------------------------------------------------------------------
/tests/_base/loader/hostenv_rhino.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests._base._loader.hostenv_rhino");
2 |
3 | tests.register("tests._base._loader.hostenv_rhino",
4 | [
5 | function getText(t){
6 | var filePath = dojo.moduleUrl("tests._base._loader", "getText.txt");
7 | var text = (new String(readText(filePath)));
8 | //The Java file read seems to add a line return.
9 | text = text.replace(/[\r\n]+$/, "");
10 | t.assertEqual("dojo._getText() test data", text);
11 | }
12 | ]
13 | );
14 |
--------------------------------------------------------------------------------
/cldr/nls/da/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hongkong dollar",
5 | "CHF_displayName": "Schweizisk franc",
6 | "CAD_displayName": "Canadisk dollar",
7 | "CNY_displayName": "Kinesisk yuan renminbi",
8 | "USD_symbol": "$",
9 | "AUD_displayName": "Australsk dollar",
10 | "JPY_displayName": "Japansk yen",
11 | "USD_displayName": "Amerikansk dollar",
12 | "GBP_displayName": "Britisk pund",
13 | "EUR_displayName": "Euro"
14 | }
15 | //end v1.x content
16 | );
--------------------------------------------------------------------------------
/tests/_base/absQuirksIframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | quirks iframe 0,0
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/cldr/nls/ca/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/he/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ",",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ".",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/ko/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ",",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ".",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "¤#,##0.00",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/pl/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/ro/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/sl/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "e",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/cs/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/da/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ",",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/de/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hongkong-Dollar",
5 | "CHF_displayName": "Schweizer Franken",
6 | "JPY_symbol": "¥",
7 | "CAD_displayName": "Kanadischer Dollar",
8 | "CNY_displayName": "Renminbi Yuan",
9 | "USD_symbol": "$",
10 | "AUD_displayName": "Australischer Dollar",
11 | "JPY_displayName": "Yen",
12 | "USD_displayName": "US-Dollar",
13 | "GBP_displayName": "Pfund Sterling",
14 | "EUR_displayName": "Euro"
15 | }
16 | //end v1.x content
17 | );
--------------------------------------------------------------------------------
/cldr/nls/de/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/fi/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "epäluku",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/fr/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/nb/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "¤ #,##0.00",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/ru/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Гонконгский доллар",
5 | "CHF_displayName": "Швейцарский франк",
6 | "CAD_displayName": "Канадский доллар",
7 | "CNY_displayName": "Юань Ренминби",
8 | "USD_symbol": "$",
9 | "AUD_displayName": "Австралийский доллар",
10 | "JPY_displayName": "Японская иена",
11 | "USD_displayName": "Доллар США",
12 | "GBP_displayName": "Английский фунт стерлингов",
13 | "EUR_displayName": "Евро"
14 | }
15 | //end v1.x content
16 | );
--------------------------------------------------------------------------------
/cldr/nls/sv/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": " ",
5 | "percentSign": "%",
6 | "exponential": "×10^",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0 %",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "−",
13 | "decimal": ",",
14 | "nan": "¤¤¤",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/tr/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "% #,##0",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "#,##0.00 ¤",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/en/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hong Kong Dollar",
5 | "CHF_displayName": "Swiss Franc",
6 | "JPY_symbol": "¥",
7 | "CAD_displayName": "Canadian Dollar",
8 | "CNY_displayName": "Chinese Yuan",
9 | "USD_symbol": "$",
10 | "AUD_displayName": "Australian Dollar",
11 | "JPY_displayName": "Japanese Yen",
12 | "USD_displayName": "US Dollar",
13 | "GBP_displayName": "British Pound Sterling",
14 | "EUR_displayName": "Euro"
15 | }
16 | //end v1.x content
17 | );
--------------------------------------------------------------------------------
/cldr/nls/hu/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hongkongi dollár",
5 | "CHF_displayName": "Svájci frank",
6 | "JPY_symbol": "¥",
7 | "CAD_displayName": "Kanadai dollár",
8 | "CNY_displayName": "Kínai jüan renminbi",
9 | "USD_symbol": "$",
10 | "AUD_displayName": "Ausztrál dollár",
11 | "JPY_displayName": "Japán jen",
12 | "USD_displayName": "USA dollár",
13 | "GBP_displayName": "Brit font sterling",
14 | "EUR_displayName": "Euro"
15 | }
16 | //end v1.x content
17 | );
--------------------------------------------------------------------------------
/cldr/nls/th/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ",",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ".",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "¤#,##0.00;¤-#,##0.00",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/tr/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hong Kong Doları",
5 | "CHF_displayName": "İsviçre Frangı",
6 | "JPY_symbol": "¥",
7 | "CAD_displayName": "Kanada Doları",
8 | "CNY_displayName": "Çin Yuanı Renminbi",
9 | "USD_symbol": "$",
10 | "AUD_displayName": "Avustralya Doları",
11 | "JPY_displayName": "Japon Yeni",
12 | "USD_displayName": "ABD Doları",
13 | "GBP_displayName": "İngiliz Sterlini",
14 | "EUR_displayName": "Euro"
15 | }
16 | //end v1.x content
17 | );
--------------------------------------------------------------------------------
/cldr/nls/nl/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "¤ #,##0.00;¤ #,##0.00-",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/pt/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ".",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ",",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "¤#,##0.00;(¤#,##0.00)",
19 | "plusSign": "+"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/cldr/nls/th/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "ดอลลาร์ฮ่องกง",
5 | "CHF_displayName": "ฟรังก์สวิส",
6 | "JPY_symbol": "¥",
7 | "CAD_displayName": "ดอลลาร์แคนาดา",
8 | "CNY_displayName": "หยวนเหรินหมินปี้ (สาธารณรัฐประชาชนจีน)",
9 | "AUD_displayName": "ดอลลาร์ออสเตรเลีย",
10 | "JPY_displayName": "เยนญี่ปุ่น",
11 | "USD_displayName": "ดอลลาร์สหรัฐ",
12 | "GBP_displayName": "ปอนด์สเตอร์ลิง (สหราชอาณาจักร)",
13 | "EUR_displayName": "ยูโร"
14 | }
15 | //end v1.x content
16 | );
--------------------------------------------------------------------------------
/cldr/nls/sl/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "hongkonški dolar",
5 | "CHF_displayName": "švicarski frank",
6 | "JPY_symbol": "¥",
7 | "CAD_displayName": "kanadski dolar",
8 | "CNY_displayName": "kitajski juan renminbi",
9 | "USD_symbol": "$",
10 | "AUD_displayName": "avstralski dolar",
11 | "JPY_displayName": "japonski jen",
12 | "USD_displayName": "ameriški dolar",
13 | "GBP_displayName": "britanski funt",
14 | "EUR_displayName": "evro"
15 | }
16 | //end v1.x content
17 | );
--------------------------------------------------------------------------------
/tests/data/countries_withoutid.json:
--------------------------------------------------------------------------------
1 | { label: 'name',
2 | items: [
3 | { abbr:'ec', name:'Ecuador', capital:'Quito' },
4 | { abbr:'eg', name:'Egypt', capital:'Cairo' },
5 | { abbr:'sv', name:'El Salvador', capital:'San Salvador' },
6 | { abbr:'gq', name:'Equatorial Guinea', capital:'Malabo' },
7 | { abbr:'er', name:'Eritrea', capital:'Asmara' },
8 | { abbr:'ee', name:'Estonia', capital:'Tallinn' },
9 | { abbr:'et', name:'Ethiopia', capital:'Addis Ababa' }
10 | ]}
11 |
--------------------------------------------------------------------------------
/cldr/nls/en-au/gregorian.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "dateFormatItem-yMEd": "EEE, d/M/y",
5 | "dateFormatItem-yyyyMMMM": "MMMM y",
6 | "dateFormatItem-MEd": "E, d/M",
7 | "dateFormat-medium": "dd/MM/yyyy",
8 | "dateFormatItem-MMdd": "dd/MM",
9 | "dateFormatItem-yyyyMM": "MM/yyyy",
10 | "dateFormat-full": "EEEE, d MMMM y",
11 | "dateFormatItem-MMMMd": "d MMMM",
12 | "dateFormat-short": "d/MM/yy",
13 | "dateFormat-long": "d MMMM y",
14 | "dateFormatItem-MMMEd": "E, d MMM"
15 | }
16 | //end v1.x content
17 | );
--------------------------------------------------------------------------------
/tests/_base/loader/xdomain/local2.js:
--------------------------------------------------------------------------------
1 | xdomainExecSequence.push("local2-1");
2 | dojo.provide("dojo.tests._base.loader.xdomain.local2");
3 | xdomainExecSequence.push("local2-2");
4 |
5 | // put the loader in xdomain loading mode
6 | dojo.require("dojo.hash");
7 | xdomainExecSequence.push("local2-3");
8 |
9 | // load a local module that will have to be transformed
10 | dojo.require("dojo.tests._base.loader.xdomain.local3");
11 | xdomainExecSequence.push("local2-4");
12 |
13 | dojo.tests._base.loader.xdomain.local2.status = "local2-loaded";
--------------------------------------------------------------------------------
/tests/data/countries_withNull.json:
--------------------------------------------------------------------------------
1 | { identifier: 'abbr',
2 | items: [
3 | { abbr:'ec', name:null, capital:'Quito' },
4 | { abbr:'eg', name:null, capital:'Cairo' },
5 | { abbr:'sv', name:'El Salvador', capital:'San Salvador' },
6 | { abbr:'gq', name:'Equatorial Guinea', capital:'Malabo' },
7 | { abbr:'er', name:'Eritrea', capital:'Asmara' },
8 | { abbr:'ee', name:null, capital:'Tallinn' },
9 | { abbr:'et', name:'Ethiopia', capital:'Addis Ababa' }
10 | ]}
11 |
--------------------------------------------------------------------------------
/tests/_base/absStrictIframe.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | strict iframe 0,0
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/tests/data/countries_idcollision.json:
--------------------------------------------------------------------------------
1 | { identifier: 'abbr',
2 | items: [
3 | { abbr:'ec', name:'Ecuador', capital:'Quito' },
4 | { abbr:'sv', name:'El Salvador', capital:'San Salvador' },
5 | { abbr:'gq', name:'Equatorial Guinea', capital:'Malabo' },
6 | { abbr:'er', name:'Eritrea', capital:'Asmara' },
7 | { abbr:'ec', name:'Egypt', capital:'Cairo' },
8 | { abbr:'ee', name:'Estonia', capital:'Tallinn' },
9 | { abbr:'et', name:'Ethiopia', capital:'Addis Ababa' }
10 | ]}
11 |
--------------------------------------------------------------------------------
/_base/browser.js:
--------------------------------------------------------------------------------
1 | if(require.has){
2 | require.has.add("config-selectorEngine", "acme");
3 | }
4 | define([
5 | "../ready",
6 | "./kernel",
7 | "./connect", // until we decide if connect is going back into non-browser environments
8 | "./unload",
9 | "./window",
10 | "./event",
11 | "./html",
12 | "./NodeList",
13 | "../query",
14 | "./xhr",
15 | "./fx"], function(dojo) {
16 | // module:
17 | // dojo/_base/browser
18 | // summary:
19 | // This module causes the browser-only base modules to be loaded.
20 | return dojo;
21 | });
22 |
--------------------------------------------------------------------------------
/tests/data/countries.json:
--------------------------------------------------------------------------------
1 | { identifier: 'abbr',
2 | label: 'name',
3 | items: [
4 | { abbr:'ec', name:'Ecuador', capital:'Quito' },
5 | { abbr:'eg', name:'Egypt', capital:'Cairo' },
6 | { abbr:'sv', name:'El Salvador', capital:'San Salvador' },
7 | { abbr:'gq', name:'Equatorial Guinea', capital:'Malabo' },
8 | { abbr:'er', name:'Eritrea', capital:'Asmara' },
9 | { abbr:'ee', name:'Estonia', capital:'Tallinn' },
10 | { abbr:'et', name:'Ethiopia', capital:'Addis Ababa' }
11 | ]}
12 |
--------------------------------------------------------------------------------
/cldr/nls/en/number.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "group": ",",
5 | "percentSign": "%",
6 | "exponential": "E",
7 | "scientificFormat": "#E0",
8 | "percentFormat": "#,##0%",
9 | "list": ";",
10 | "infinity": "∞",
11 | "patternDigit": "#",
12 | "minusSign": "-",
13 | "decimal": ".",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "perMille": "‰",
17 | "decimalFormat": "#,##0.###",
18 | "currencyFormat": "¤#,##0.00;(¤#,##0.00)",
19 | "plusSign": "+",
20 | "decimalFormat-short": "000T"
21 | }
22 | //end v1.x content
23 | );
--------------------------------------------------------------------------------
/tests/_base/window_iframe_standards.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Standards mode frame
5 |
6 |
7 |
8 | Standards mode frame
9 |
15 |
16 |
--------------------------------------------------------------------------------
/dnd/Target.js:
--------------------------------------------------------------------------------
1 | define([ "../_base/declare", "../dom-class", "./Source" ], function(declare, domClass, Source){
2 | /*===== Source = dojo.dnd.Source =====*/
3 | return declare("dojo.dnd.Target", Source, {
4 | // summary: a Target object, which can be used as a DnD target
5 |
6 | constructor: function(/*===== node, params =====*/){
7 | // summary:
8 | // a constructor of the Target --- see the `dojo.dnd.Source.constructor` for details
9 | this.isSource = false;
10 | domClass.remove(this.node, "dojoDndSource");
11 | }
12 | });
13 | });
14 |
--------------------------------------------------------------------------------
/tests/data/countries_commentFiltered.json:
--------------------------------------------------------------------------------
1 | /*
2 | { identifier: 'abbr',
3 | items: [
4 | { abbr:'ec', name:'Ecuador', capital:'Quito' },
5 | { abbr:'eg', name:'Egypt', capital:'Cairo' },
6 | { abbr:'sv', name:'El Salvador', capital:'San Salvador' },
7 | { abbr:'gq', name:'Equatorial Guinea', capital:'Malabo' },
8 | { abbr:'er', name:'Eritrea', capital:'Asmara' },
9 | { abbr:'ee', name:'Estonia', capital:'Tallinn' },
10 | { abbr:'et', name:'Ethiopia', capital:'Addis Ababa' }
11 | ]}
12 | */
13 |
--------------------------------------------------------------------------------
/cldr/nls/sv/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hongkong-dollar",
5 | "CHF_displayName": "schweizisk franc",
6 | "CHF_symbol": "CHF",
7 | "CAD_displayName": "kanadensisk dollar",
8 | "CNY_displayName": "kinesisk yuan renminbi",
9 | "AUD_displayName": "australisk dollar",
10 | "JPY_displayName": "japansk yen",
11 | "CAD_symbol": "CAD",
12 | "USD_displayName": "US-dollar",
13 | "CNY_symbol": "CNY",
14 | "GBP_displayName": "brittiskt pund sterling",
15 | "EUR_displayName": "euro"
16 | }
17 | //end v1.x content
18 | );
--------------------------------------------------------------------------------
/tests/_base/loader/coolio/coolio.js:
--------------------------------------------------------------------------------
1 | require({
2 | packages:[{
3 | name:"cdojo",
4 | location:(dojoConfig.coolioDojoRoot || dojoConfig.coolioRoot) + "/dojo",
5 | packageMap:{dojo:"cdojo"}
6 | },{
7 | name:"cdijit",
8 | location:(dojoConfig.coolioDojoRoot || dojoConfig.coolioRoot) + "/dijit",
9 | packageMap:{dojo:"cdojo", dijit:"cdijit"}
10 | },{
11 | name:"coolio",
12 | location:dojoConfig.coolioRoot + "/coolio",
13 | packageMap:{dojo:"cdojo", dijit:"cdijit"}
14 | }],
15 | cdojoScope:[["dojo", "cdojo"], ["dijit", "cdijit"]]
16 | });
17 |
18 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/depoverlap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Dependency Overlap Test
5 |
6 |
7 |
8 |
9 | require.js: Dependency Overlap Test
10 | uno requires dos and tres, but tres also requires dos. Make sure
11 | dos is only added once, and that all are defined correctly.
12 | Check console for messages
13 |
14 |
15 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/exports.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Exports Test
5 |
10 |
11 |
12 |
13 |
14 |
15 | require.js: Exports Test
16 | Check console for messages
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/data/data_multitype.json:
--------------------------------------------------------------------------------
1 | {
2 | "identifier": "count",
3 | "label": "count",
4 | "items": [
5 | { "count": 1, "value": "true" },
6 | { "count": 2, "value": true },
7 | { "count": 3, "value": "false"},
8 | { "count": 4, "value": false },
9 | { "count": 5, "value": true },
10 | { "count": 6, "value": true },
11 | { "count": 7, "value": "true" },
12 | { "count": 8, "value": "true" },
13 | { "count": 9, "value": "false"},
14 | { "count": 10, "value": false },
15 | { "count": 11, "value": [false, false]},
16 | { "count": "12", "value": [false, "true"]}
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/tests/back-hash.js:
--------------------------------------------------------------------------------
1 | define(["../main", "doh", "../back"], function(dojo, doh){
2 | doh.register("tests.back.hash", [
3 | function getAndSet(t) {
4 | var cases = [
5 | "test",
6 | "test with spaces",
7 | "test%20with%20encoded",
8 | "test+with+pluses",
9 | " leading",
10 | "trailing ",
11 | "under_score",
12 | "extra#mark",
13 | "extra?instring",
14 | "extra&instring",
15 | "#leadinghash"
16 | ];
17 | var b = dojo.back;
18 | function verify(s){
19 | dojo.back.setHash(s);
20 | t.is(s, dojo.back.getHash(s));
21 | }
22 | dojo.forEach(cases, verify);
23 | }
24 | ]);
25 | });
26 |
--------------------------------------------------------------------------------
/tests/data/geography_hierarchy_small.json:
--------------------------------------------------------------------------------
1 | { items:[
2 | { name:'Africa', countries:[
3 | { name:'Egypt', capital:'Cairo' },
4 | { name:'Kenya', capital:'Nairobi' },
5 | { name:'Sudan', capital:'Khartoum' }]},
6 | { name:'Australia', capital:'Canberra' },
7 | { name:'North America', countries:[
8 | { name:'Canada', population:'33 million', cities:[
9 | { name:'Toronto', population:'2.5 million' },
10 | { name:'Alberta', population:'1 million' }
11 | ]},
12 | { name: 'United States of America', capital: 'Washington DC', states:[
13 | { name: 'Missouri'},
14 | { name: 'Arkansas'}
15 | ]}
16 | ]}
17 | ]
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/cldr/nls/en-ca/gregorian.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "dateFormatItem-yMMMEd": "EEE, d MMM, y",
5 | "dateFormatItem-yyMMM": "MMM-yy",
6 | "dateFormatItem-Md": "M-d",
7 | "dateFormatItem-yMEd": "EEE, y-M-d",
8 | "dateFormatItem-MEd": "E, M-d",
9 | "dateFormatItem-MMMMEd": "E, d MMMM",
10 | "dateFormat-medium": "yyyy-MM-dd",
11 | "dateFormatItem-MMMd": "d MMM",
12 | "dateFormatItem-MMdd": "MM-dd",
13 | "dateFormat-full": "EEEE, d MMMM, y",
14 | "dateFormat-short": "yy-MM-dd",
15 | "dateFormatItem-MMMMd": "d MMMM",
16 | "dateFormat-long": "d MMMM, y",
17 | "dateFormatItem-MMMEd": "E, d MMM"
18 | }
19 | //end v1.x content
20 | );
--------------------------------------------------------------------------------
/cldr/nls/fi/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hongkongin dollari",
5 | "CHF_displayName": "Sveitsin frangi",
6 | "CHF_symbol": "CHF",
7 | "JPY_symbol": "¥",
8 | "CAD_displayName": "Kanadan dollari",
9 | "HKD_symbol": "HKD",
10 | "CNY_displayName": "Kiinan yuan",
11 | "USD_symbol": "$",
12 | "AUD_displayName": "Australian dollari",
13 | "JPY_displayName": "Japanin jeni",
14 | "CAD_symbol": "CAD",
15 | "USD_displayName": "Yhdysvaltain dollari",
16 | "CNY_symbol": "CNY",
17 | "GBP_displayName": "Englannin punta",
18 | "AUD_symbol": "AUD",
19 | "EUR_displayName": "euro"
20 | }
21 | //end v1.x content
22 | );
--------------------------------------------------------------------------------
/tests/_base/fx_delay.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
18 |
19 |
20 | click me
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/layers/layer1.js:
--------------------------------------------------------------------------------
1 | //Example layer file.
2 |
3 | define("alpha",
4 | ["beta", "gamma"],
5 | function (beta, gamma) {
6 | return {
7 | name: "alpha",
8 | betaName: beta.name
9 | };
10 | }
11 | );
12 |
13 | define("beta",
14 | ["gamma"],
15 | function (gamma) {
16 | return {
17 | name: "beta",
18 | gammaName: gamma.name
19 | };
20 | }
21 | );
22 |
23 | define("gamma",
24 | ["epsilon"],
25 | function (epsilon) {
26 | return {
27 | name: "gamma",
28 | epsilonName: epsilon.name
29 | };
30 | }
31 | );
32 |
--------------------------------------------------------------------------------
/tests/_base/queryPortability.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | look ma! query, but no Dojo!
4 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 | howdy!
18 | howdy!
19 | howdy
20 | howdy!
21 | thinger
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/cldr/nls/fr/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "dollar de Hong Kong",
5 | "CHF_displayName": "franc suisse",
6 | "CHF_symbol": "CHF",
7 | "JPY_symbol": "¥JP",
8 | "CAD_displayName": "dollar canadien",
9 | "HKD_symbol": "$HK",
10 | "CNY_displayName": "yuan renminbi chinois",
11 | "USD_symbol": "$US",
12 | "AUD_displayName": "dollar australien",
13 | "JPY_displayName": "yen japonais",
14 | "CAD_symbol": "$CA",
15 | "USD_displayName": "dollar des États-Unis",
16 | "CNY_symbol": "Ұ",
17 | "GBP_displayName": "livre sterling",
18 | "GBP_symbol": "£UK",
19 | "AUD_symbol": "$AU",
20 | "EUR_displayName": "euro"
21 | }
22 | //end v1.x content
23 | );
--------------------------------------------------------------------------------
/cldr/nls/nb/currency.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "HKD_displayName": "Hongkong-dollar",
5 | "CHF_displayName": "sveitsiske franc",
6 | "CHF_symbol": "CHF",
7 | "JPY_symbol": "JPY",
8 | "CAD_displayName": "kanadiske dollar",
9 | "CNY_displayName": "kinesiske yuan renminbi",
10 | "USD_symbol": "USD",
11 | "AUD_displayName": "australske dollar",
12 | "JPY_displayName": "japanske yen",
13 | "CAD_symbol": "CAD",
14 | "USD_displayName": "amerikanske dollar",
15 | "EUR_symbol": "EUR",
16 | "CNY_symbol": "CNY",
17 | "GBP_displayName": "britiske pund sterling",
18 | "GBP_symbol": "GBP",
19 | "AUD_symbol": "AUD",
20 | "EUR_displayName": "euro"
21 | }
22 | //end v1.x content
23 | );
--------------------------------------------------------------------------------
/tests/_base/loader/traceApi.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/data/countries_withBoolean.json:
--------------------------------------------------------------------------------
1 | { identifier: 'abbr',
2 | items: [
3 | { abbr:'ec', name:'Ecuador', capital:'Quito', real:true},
4 | { abbr:'eg', name:'Egypt', capital:'Cairo', real:true},
5 | { abbr:'sv', name:'El Salvador', capital:'San Salvador', real:true},
6 | { abbr:'gq', name:'Equatorial Guinea', capital:'Malabo', real:true},
7 | { abbr:'er', name:'Eritrea', capital:'Asmara', real:true},
8 | { abbr:'ee', name:'Estonia', capital:'Tallinn', real:true},
9 | { abbr:'et', name:'Ethiopia', capital:'Addis Ababa', real:true},
10 | { abbr:'ut', name:'Utopia', capital:'Paradise', real:false}
11 | ]}
12 |
--------------------------------------------------------------------------------
/tests/resources/testClass.smd:
--------------------------------------------------------------------------------
1 | {
2 | "SMDVersion":".1",
3 | "objectName":"testClass",
4 | "serviceType":"JSON-RPC",
5 | "serviceURL":"../../dojo/tests/resources/test_JsonRPCMediator.php",
6 | "methods":[
7 | {
8 | "name":"myecho",
9 | "parameters":[
10 | {
11 | "name":"somestring",
12 | "type":"STRING"
13 | }
14 | ]
15 | },
16 | {
17 | "name":"contentB"
18 | },
19 | {
20 | "name":"contentC"
21 | },
22 | {
23 | "name":"add",
24 | "parameters":[
25 | {
26 | "name":"x",
27 | "type":"STRING"
28 | },
29 | {
30 | "name":"y",
31 | "type":"STRING"
32 | }
33 | ]
34 | },
35 | {
36 | "name":"triggerRpcError"
37 | }
38 | ]
39 | }
40 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/relative/relative-tests.js:
--------------------------------------------------------------------------------
1 | require({
2 | baseUrl: require.has("host-browser") ? "./" : "./relative/",
3 | paths: {
4 | text: "../../text"
5 | }
6 | },
7 | ["require", "foo/bar/one", "doh"],
8 | function(require, one, doh) {
9 | doh.register(
10 | "relative",
11 | [
12 | function relative(t){
13 | t.is("one", one.name);
14 | t.is("two", one.twoName);
15 | t.is("three", one.threeName);
16 | t.is("hello world", one.message);
17 | }
18 | ]
19 | );
20 |
21 | doh.run();
22 | }
23 | );
24 |
--------------------------------------------------------------------------------
/tests/_base/loader/core.js:
--------------------------------------------------------------------------------
1 | define(["doh"], function(doh){
2 | doh.register("dojo.tests._base._loader.internals", [
3 | function compactPath(t){
4 | var compactPath = require.compactPath;
5 | t.is(compactPath("../../dojo/../../mytests"), "../../../mytests");
6 | t.is(compactPath("module"), "module");
7 | t.is(compactPath("a/./b"), "a/b");
8 | t.is(compactPath("a/../b"), "b");
9 | t.is(compactPath("a/./b/./c/./d"), "a/b/c/d");
10 | t.is(compactPath("a/../b/../c/../d"), "d");
11 | t.is(compactPath("a/b/c/../../d"), "a/d");
12 | t.is(compactPath("a/b/c/././d"), "a/b/c/d");
13 | t.is(compactPath("./a/b"), "a/b");
14 | t.is(compactPath("../a/b"), "../a/b");
15 | t.is(compactPath(""), "");
16 | }
17 | ]);
18 | });
19 |
--------------------------------------------------------------------------------
/cldr/nls/en-gb/gregorian.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "dateFormatItem-yyMMM": "MMM yy",
5 | "dateFormatItem-Md": "d/M",
6 | "dateFormatItem-yMEd": "EEE, d/M/yyyy",
7 | "timeFormat-full": "HH:mm:ss zzzz",
8 | "timeFormat-medium": "HH:mm:ss",
9 | "dateFormatItem-yyyyMMMM": "MMMM y",
10 | "dateFormatItem-MEd": "E, d/M",
11 | "dateFormat-medium": "d MMM y",
12 | "dateFormatItem-MMdd": "dd/MM",
13 | "dateFormatItem-yyyyMM": "MM/yyyy",
14 | "dateFormat-full": "EEEE, d MMMM y",
15 | "timeFormat-long": "HH:mm:ss z",
16 | "timeFormat-short": "HH:mm",
17 | "dateFormat-short": "dd/MM/yyyy",
18 | "dateFormatItem-MMMMd": "d MMMM",
19 | "dateFormat-long": "d MMMM y",
20 | "dateFormatItem-MMMEd": "E d MMM"
21 | }
22 | //end v1.x content
23 | );
--------------------------------------------------------------------------------
/tests/_base/loader/coolio/coolio.profile.js:
--------------------------------------------------------------------------------
1 | dependencies = {
2 | quiet:1,
3 | action:"release",
4 | optimize:0,
5 | layerOptimize:0,
6 | insertAbsMids:0,
7 | copyTests:"build",
8 | mini:0,
9 | releaseDir:"../../dojo/tests/_base/loader",
10 | releaseName:"coolioBuilt",
11 | scopeMap:[["dojo", "cdojo"], ["dijit", "cdijit"], , ["dojox", "dojox"]],
12 | layers: [
13 | {
14 | name: "dojo.js",
15 | dependencies: [
16 | "dojo.main",
17 | "dojo.parser"
18 | ]
19 | },{
20 | customBase:1,
21 | name: "main.js"
22 | },{
23 | name: "../dijit/Calendar.js",
24 | dependencies: [
25 | "dijit.Calendar"
26 | ]
27 | }
28 | ],
29 | prefixes: [
30 | ["dijit", "../dijit"],
31 | ["dojox", "../dojox"],
32 | ["coolio", "./tests/_base/loader/coolio"]
33 | ]
34 | }
--------------------------------------------------------------------------------
/tests/_base/loader/modules.js:
--------------------------------------------------------------------------------
1 | define([
2 | "doh",
3 | "dojo",
4 | "require",
5 | "./modules/anon",
6 | "./modules/wrapped",
7 | "dojo/tests/_base/loader/modules/full",
8 | "./modules/data",
9 | "./modules/factoryArity"], function(doh, dojo, require, anon, wrapped){
10 |
11 | doh.register("dojo.tests._base._loader.modules", [
12 | function testAMD(t){
13 | // test AMD module API
14 | t.is(anon.theAnswer, 42);
15 | t.is(require('./modules/anon').five, 5);
16 | t.is(wrapped.five, 5);
17 | t.is(dojo.require('dojo.tests._base.loader.modules.wrapped'), require('./modules/wrapped'));
18 | t.is(require('./modules/full').twiceTheAnswer, 84);
19 | t.is(require('./modules/data').five, 5);
20 | t.is(require('./modules/factoryArity').i, 5);
21 | }
22 | ]);
23 | });
24 |
25 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dojo",
3 | "version":"1.8.0dev",
4 | "directories": {
5 | "lib": "."
6 | },
7 | "main": "main",
8 | "description": "Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.",
9 | "licenses": [
10 | {
11 | "type": "AFLv2.1",
12 | "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L43"
13 | },
14 | {
15 | "type": "BSD",
16 | "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L13"
17 | }
18 | ],
19 | "bugs": "http://bugs.dojotoolkit.org/",
20 | "keywords": ["JavaScript", "Dojo", "Toolkit"],
21 | "homepage": "http://dojotoolkit.org/",
22 | "dojoBuild": "dojo.profile.js"
23 | }
24 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/simple-tests.js:
--------------------------------------------------------------------------------
1 | require({
2 | baseUrl: "./"
3 | },
4 | ["require", "map", "simple", "dimple", "func", "doh"],
5 | function(require, map, simple, dimple, func, doh) {
6 | doh.register(
7 | "simple",
8 | [
9 | function colors(t){
10 | t.is("map", map.name);
11 | t.is("blue", simple.color);
12 | t.is("dimple-blue", dimple.color);
13 | t.is("You called a function", func());
14 | }
15 | ]
16 | );
17 |
18 | //In rhino there is no more simple tests, but in web browser there is.
19 | if (typeof moreSimpleTests === 'undefined') {
20 | doh.run();
21 | }
22 | }
23 | );
24 |
--------------------------------------------------------------------------------
/tests/data/countries_withDates.json:
--------------------------------------------------------------------------------
1 | { identifier: 'abbr',
2 | label: 'name',
3 | items: [
4 | { abbr:'ec', name:'Ecuador', capital:'Quito' },
5 | { abbr:'eg', name:'Egypt', capital:'Cairo' },
6 | { abbr:'sv', name:'El Salvador', capital:'San Salvador' },
7 | { abbr:'gq', name:'Equatorial Guinea', capital:'Malabo' },
8 | { abbr:'er',
9 | name:'Eritrea',
10 | capital:'Asmara',
11 | independence:{_type:'Date', _value:"1993-05-24T00:00:00Z"} // May 24, 1993 in ISO-8601 standard
12 | },
13 | { abbr:'ee',
14 | name:'Estonia',
15 | capital:'Tallinn',
16 | independence:{_type:'Date', _value:"1991-08-20T00:00:00Z"} // August 20, 1991 in ISO-8601 standard
17 | },
18 | { abbr:'et',
19 | name:'Ethiopia',
20 | capital:'Addis Ababa' }
21 | ]}
22 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/relative/relative.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Relative Module Names Test
5 |
10 |
11 |
12 |
16 |
17 |
18 |
19 | require.js: Relative Module Names Test
20 | Check console for messages
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/requirejs-setup.js:
--------------------------------------------------------------------------------
1 | var dohArgs= (window.parent.doh && window.parent.doh.dohArgs) || dohArgs || {
2 | async:1,
3 | baseUrl:"."
4 | };
5 | var requirejsArgs= requirejsArgs || {
6 | dojoLocation:"../../../.."
7 | };
8 | var dojoConfig= {
9 | async:dohArgs.async,
10 | baseUrl:dohArgs.baseUrl || ".",
11 | packages:[{
12 | name:'dojo',
13 | location:requirejsArgs.dojoLocation
14 | },{
15 | name:'doh',
16 | location:requirejsArgs.dojoLocation + '/../util/doh'
17 | },{
18 | name:'dojox',
19 | location:requirejsArgs.dojoLocation + '/../dojox'
20 | }],
21 | has:{
22 | "dojo-requirejs-api":1,
23 | "config-tlmSiblingOfDojo":0
24 | }
25 | };
26 | if(typeof require!="undefined"){
27 | (function(){
28 | for(var p in require){
29 | dojoConfig[p]= require[p];
30 | }
31 | })();
32 | }
33 |
--------------------------------------------------------------------------------
/tests/_base.js:
--------------------------------------------------------------------------------
1 | define([
2 | "dojo/tests/_base/loader",
3 | "dojo/tests/_base/array",
4 | "dojo/tests/_base/Color",
5 | "dojo/tests/_base/lang",
6 | "dojo/tests/_base/declare",
7 | "dojo/tests/_base/connect",
8 | "dojo/tests/_base/Deferred",
9 | "dojo/tests/_base/json",
10 | "dojo/tests/_base/object",
11 | "dojo/has!host-browser?dojo/tests/_base/html",
12 | "dojo/has!host-browser?dojo/tests/_base/fx",
13 | "dojo/has!host-browser?dojo/tests/_base/query",
14 | "dojo/has!host-browser?dojo/tests/_base/xhr",
15 | "dojo/has!host-browser?dojo/tests/_base/window"], 1);
16 |
17 | // TODO: platform boot tests
18 | //dojo.platformRequire({
19 | // browser: ["tests._base._loader.hostenv_browser"],
20 | // rhino: ["tests._base._loader.hostenv_rhino"],
21 | // spidermonkey: ["tests._base._loader.hostenv_spidermonkey"]
22 | //});
23 |
--------------------------------------------------------------------------------
/store/README:
--------------------------------------------------------------------------------
1 | This folder contains the stores and utilities implementing the proposed new Dojo Object Store API,
2 | a successor and unifier to Dojo Data, Dojo Storage, and potentially Dojo Model. These
3 | stores are brand new, and designed to provide simple lightweight implementations
4 | providing core functionality for typical applications. These modules are under active
5 | development, and exist here at this time to provide maximum visibility to the
6 | efforts to design and develop this new API and set of base stores. The goal is
7 | to have these stores ready for Dojo 1.6. In the meantime, these stores are likely to
8 | have API changes, may be missing some functionality, tests, and/or documentation.
9 | If these modules are not deemed suitably stable by the 1.6 release, this directory (or
10 | individual modules) will be removed and be given a later release target.
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/simple-nohead.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | require.js: Simple Test, no head tag
4 | Check console for messages
5 |
6 |
7 |
8 |
25 |
--------------------------------------------------------------------------------
/cldr/nls/currency.js:
--------------------------------------------------------------------------------
1 | define({ root:
2 |
3 | //begin v1.x content
4 | {
5 | "USD_symbol": "US$",
6 | "CAD_symbol": "CA$",
7 | "GBP_symbol": "£",
8 | "HKD_symbol": "HK$",
9 | "JPY_symbol": "JP¥",
10 | "AUD_symbol": "AU$",
11 | "CNY_symbol": "CN¥",
12 | "EUR_symbol": "€"
13 | }
14 | //end v1.x content
15 | ,
16 | "ar": true,
17 | "ca": true,
18 | "cs": true,
19 | "da": true,
20 | "de": true,
21 | "el": true,
22 | "en": true,
23 | "en-au": true,
24 | "en-ca": true,
25 | "es": true,
26 | "fi": true,
27 | "fr": true,
28 | "he": true,
29 | "hu": true,
30 | "it": true,
31 | "ja": true,
32 | "ko": true,
33 | "nb": true,
34 | "nl": true,
35 | "pl": true,
36 | "pt": true,
37 | "ro": true,
38 | "ru": true,
39 | "sk": true,
40 | "sl": true,
41 | "sv": true,
42 | "th": true,
43 | "tr": true,
44 | "zh": true,
45 | "zh-hant": true,
46 | "zh-hk": true,
47 | "zh-tw": true
48 | });
--------------------------------------------------------------------------------
/tests/_base/html.js:
--------------------------------------------------------------------------------
1 | define(["doh", "require"], function(doh, require){
2 | if(doh.isBrowser){
3 | doh.register("tests._base.html", require.toUrl("./html.html"), 15000);
4 | doh.register("tests._base.html_id", require.toUrl("./html_id.html"), 15000);
5 | doh.register("tests._base.html_element", require.toUrl("./html_element.html"), 15000);
6 | doh.register("tests._base.html_rtl", require.toUrl("./html_rtl.html"), 15000);
7 | doh.register("tests._base.html_quirks", require.toUrl("./html_quirks.html"), 15000);
8 | doh.register("tests._base.html_box", require.toUrl("./html_box.html"), 35000);
9 | doh.register("tests._base.html_box_quirks", require.toUrl("./html_box_quirks.html"), 35000);
10 | doh.register("tests._base.html_isBodyLtr", require.toUrl("./html_isBodyLtr.html"), 35000);
11 | doh.register("tests._base.html_docScroll", require.toUrl("./html_docScroll.html"), 35000);
12 | }
13 | });
14 |
--------------------------------------------------------------------------------
/tests/_base/xhtml.php:
--------------------------------------------------------------------------------
1 |
2 | if(isset($_SERVER["HTTP_ACCEPT"]) && stristr( $_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")){
3 | header("Content-type: application/xhtml+xml");
4 | }else{
5 | header("Content-type: text/html");
6 | }
7 | ?>
8 |
10 |
11 |
12 |
13 |
16 |
17 |
24 |
25 |
26 | hey there!
27 | ...
28 |
29 |
30 |
--------------------------------------------------------------------------------
/tests/_base/loader/ready.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/circular-tests.js:
--------------------------------------------------------------------------------
1 | require(
2 | ["require", "two", "funcTwo", "funcThree", "doh"],
3 | function(require, two, funcTwo, funcThree, doh) {
4 | var args = two.doSomething();
5 | var twoInst = new funcTwo("TWO");
6 | doh.register(
7 | "circular",
8 | [
9 | function circular(t) {
10 | t.is("small", args.size);
11 | t.is("redtwo", args.color);
12 | }
13 | ]
14 | );
15 | doh.run();
16 |
17 | doh.register(
18 | "circularFunc",
19 | [
20 | function circularFunc(t) {
21 | t.is("TWO", twoInst.name);
22 | t.is("ONE-NESTED", twoInst.oneName());
23 | t.is("THREE-THREE_SUFFIX", funcThree("THREE"));
24 | }
25 | ]
26 | );
27 | doh.run();
28 | }
29 | );
30 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/exports/exports-tests.js:
--------------------------------------------------------------------------------
1 | require({
2 | baseUrl: require.has("host-browser") ? "./" : "./exports/"
3 | },
4 | ["require", "vanilla", "funcSet", "assign", "assign2", "usethis",
5 | "implicitModule", "simpleReturn", "doh"],
6 | function(require, vanilla, funcSet, assign, assign2, usethis,
7 | implicitModule, simpleReturn, doh) {
8 | doh.register(
9 | "exports",
10 | [
11 | function exports(t){
12 | t.is("vanilla", vanilla.name);
13 | t.is("funcSet", funcSet);
14 | t.is("assign", assign);
15 | t.is("assign2", assign2);
16 | //TODO: not implemented in dojo t.is("usethis", usethis.name);
17 | t.is("implicitModule", implicitModule());
18 | t.is("simpleReturn", simpleReturn());
19 | }
20 | ]
21 | );
22 | doh.run();
23 | }
24 | );
25 |
--------------------------------------------------------------------------------
/tests/data/reference_integrity.json:
--------------------------------------------------------------------------------
1 | /*
2 | {
3 | "identifier": "id",
4 | "label": "name",
5 | "items":[
6 | {"id": 1, "name": "Item 1"},
7 | {"id": 2, "name": "Item 2"},
8 | {"id": 3, "name": "Item 3"},
9 | {"id": 4, "name": "Item 4"},
10 | {"id": 5, "name": "Item 5"},
11 | {"id": 6, "name": "Item 6"},
12 | {"id": 7, "name": "Item 7"},
13 | {"id": 8, "name": "Item 8"},
14 | {"id": 9, "name": "Item 9"},
15 | {"id": 10, "name": "Item 10", "friends": [{"_reference": 1},{"_reference": 3},{"_reference": 5}]},
16 | {"id": 11, "name": "Item 11", "friends": [{"_reference": 10}], "siblings": [{"_reference": 10}]},
17 | {"id": 12, "name": "Item 12", "friends": [{"_reference": 3},{"_reference": 7}], "enemies": [{"_reference": 10}]},
18 | {"id": 13, "name": "Item 13", "friends": [{"_reference": 10}]},
19 | {"id": 14, "name": "Item 14", "friends": [{"_reference": 11}]},
20 | {"id": 15, "name": "item 15", "friends": [{"id": 16, "name": "Item 16"}]}
21 | ]
22 | }
23 | */
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/resources/_modules.js:
--------------------------------------------------------------------------------
1 | /*=====
2 | // Supplemental summaries for those hard-to-doc places your conventional doc parser can't reach.
3 | // Where possible, these summaries should appear inline in the code.
4 | //
5 | // this is "package level documentation"
6 |
7 | dojo.cldr = {
8 | // summary: transformation of relevant pieces of the Unicode.org Common Locale Data Repository
9 | // (see http://unicode.org/cldr) to JSON from the original XML with associated utility classes
10 | };
11 |
12 | dojo.data = {
13 | // summary: A uniform data access layer
14 | };
15 |
16 | dojo.dnd = {
17 | // summary: Drag and Drop resources
18 | };
19 |
20 | dojo.io = {
21 | // summary: Additional I/O transports (Ajax)
22 | };
23 |
24 | dojo.rpc = {
25 | // summary: Dojo remote-procedure-call resources
26 | };
27 |
28 | // "variables"
29 |
30 | dojo.baseUrl = {
31 | // summary: The root relative path to dojo.js (as a string)
32 | // example:
33 | // if(typeof dojo != "undefined"){ console.log(dojo.baseUrl); }
34 | };
35 |
36 | =====*/
37 |
--------------------------------------------------------------------------------
/tests/_base/object.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests._base.object");
2 |
3 | // setup the test object
4 | dojo.zoo = { a:1, c: { d:1 } };
5 |
6 | tests.register("tests._base.object",
7 | [
8 |
9 | function getBasic(t){
10 | var x = dojo.getObject('dojo.zoo.a');
11 | t.is(1, x);
12 | },
13 |
14 | function setObject2(t){
15 | dojo.setObject("dojo.zoo.foo.bar", 42);
16 | t.is(42, dojo.zoo.foo.bar);
17 | },
18 |
19 | function setWithContext(t){
20 | // c is already {}
21 | dojo.setObject("zoo.c.x", "foo!", dojo);
22 | t.is("foo!", dojo.zoo.c.x);
23 | },
24 |
25 | function getUndefined(t){
26 | var x = dojo.getObject('dojo.zoo.b');
27 | t.is(undefined, x);
28 | },
29 |
30 | function setDeep(t){
31 | dojo.setObject("dojo.zoo.c.e.f.g.h.i", 42);
32 | t.is(42, dojo.zoo.c.e.f.g.h.i);
33 | },
34 |
35 | function getDeep(t){
36 | dojo.getObject("dojo.zoo.bar.baz.bam", true);
37 | dojo.zoo.bar.baz.bam.x = 10;
38 | t.is(10, dojo.zoo.bar.baz.bam.x);
39 | }
40 |
41 | ]
42 | );
43 |
--------------------------------------------------------------------------------
/tests/sniff.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | dojo/sniff test
4 |
13 |
14 |
27 |
28 |
29 | dojo/sniff results
30 |
34 |
35 |
--------------------------------------------------------------------------------
/resources/dnd.css:
--------------------------------------------------------------------------------
1 | /* DnD avatar-specific settings */
2 | .dojoDndAvatar {font-size: 75%; color: black;}
3 | .dojoDndAvatarHeader td {padding-left: 20px; padding-right: 4px; height: 16px;}
4 | .dojoDndAvatarHeader {background: #ccc;}
5 | .dojoDndAvatarItem {background: #eee;}
6 | .dojoDndMove .dojoDndAvatarHeader {background-image: url(images/dndNoMove.png); background-repeat: no-repeat;}
7 | .dojoDndCopy .dojoDndAvatarHeader {background-image: url(images/dndNoCopy.png); background-repeat: no-repeat;}
8 | .dojoDndMove .dojoDndAvatarCanDrop .dojoDndAvatarHeader {background-image: url(images/dndMove.png); background-repeat: no-repeat;}
9 | .dojoDndCopy .dojoDndAvatarCanDrop .dojoDndAvatarHeader {background-image: url(images/dndCopy.png); background-repeat: no-repeat;}
10 |
11 | .dojoDndHandle {cursor: move;}
12 | .dojoDndIgnore {cursor: default;}
13 |
14 | .dijit_a11y .dojoDndAvatar { font-size: 1em; font-weight:bold;}
15 | .dijit_a11y .dojoDndAvatarHeader td {padding-left:2px !important;}
16 | .dijit_a11y .dojoDndAvatarHeader td span {padding-right: 5px;}
17 |
--------------------------------------------------------------------------------
/cldr/README:
--------------------------------------------------------------------------------
1 | All files within this directory were derived from the Common Locale
2 | Data Repository (see http://unicode.org/cldr) The CLDR project is
3 | responsible for the accuracy and maintenance of this data. A copy
4 | of this data is checked into the Dojo util project as a zip file.
5 | The XML data is transformed to the JSON-style Javascript you see
6 | under the nls/ directory. These Javascript files include data
7 | necessary to do things like format and parse dates, numbers, and
8 | currencies in different locales to consider cultural differences.
9 | They are used by other modules in core Dojo such as dojo.date,
10 | dojo.number and dojo.currency. It usually is not necessary to use
11 | dojo.cldr directly.
12 |
13 | An arbitrary subset of locales have been checked in to dojo/cldr
14 | under svn. To support other locales, the full set may be generated
15 | by using xslt scripts in the util/buildscripts/cldr/ ant script.
16 | Hundreds of locales are supported by the CLDR project.
17 |
18 | See terms of use: http://www.unicode.org/copyright.html#Exhibit1
19 |
--------------------------------------------------------------------------------
/tests/_base/loader/declareStepsOnProvide.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
20 |
21 | check console
22 | This tests a legacy module that has two dojo.provides and both are stepped on by dojo.declare.
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tests/resources/ApplicationState.js:
--------------------------------------------------------------------------------
1 | /*
2 | ApplicationState is an object that represents the application state.
3 | It will be given to dojo.undo.browser to represent the current application state.
4 | */
5 | ApplicationState = function(stateData, outputDivId, backForwardOutputDivId, bookmarkValue){
6 | this.stateData = stateData;
7 | this.outputDivId = outputDivId;
8 | this.backForwardOutputDivId = backForwardOutputDivId;
9 | this.changeUrl = bookmarkValue;
10 | };
11 |
12 | ApplicationState.prototype.back = function(){
13 | this.showBackForwardMessage("BACK for State Data: " + this.stateData);
14 | this.showStateData();
15 | };
16 |
17 | ApplicationState.prototype.forward = function(){
18 | this.showBackForwardMessage("FORWARD for State Data: " + this.stateData);
19 | this.showStateData();
20 | };
21 |
22 | ApplicationState.prototype.showStateData = function(){
23 | dojo.byId(this.outputDivId).innerHTML += this.stateData + ' ';
24 | };
25 |
26 | ApplicationState.prototype.showBackForwardMessage = function(message){
27 | dojo.byId(this.backForwardOutputDivId).innerHTML += message + ' ';
28 | };
29 |
--------------------------------------------------------------------------------
/dnd/common.js:
--------------------------------------------------------------------------------
1 | define(["../_base/connect", "../_base/kernel", "../_base/lang", "../dom"],
2 | function(connect, kernel, lang, dom) {
3 |
4 | // module:
5 | // dojo/dnd/common
6 | // summary:
7 | // TODOC
8 |
9 | var exports = lang.getObject("dojo.dnd", true);
10 | /*=====
11 | dojo.dnd = {
12 | // summary:
13 | // TODOC
14 | };
15 | exports = dojo.dnd;
16 | =====*/
17 |
18 | exports.getCopyKeyState = connect.isCopyKey;
19 |
20 | exports._uniqueId = 0;
21 | exports.getUniqueId = function(){
22 | // summary:
23 | // returns a unique string for use with any DOM element
24 | var id;
25 | do{
26 | id = kernel._scopeName + "Unique" + (++exports._uniqueId);
27 | }while(dom.byId(id));
28 | return id;
29 | };
30 |
31 | exports._empty = {};
32 |
33 | exports.isFormElement = function(/*Event*/ e){
34 | // summary:
35 | // returns true if user clicked on a form element
36 | var t = e.target;
37 | if(t.nodeType == 3 /*TEXT_NODE*/){
38 | t = t.parentNode;
39 | }
40 | return " button textarea input select option ".indexOf(" " + t.tagName.toLowerCase() + " ") >= 0; // Boolean
41 | };
42 |
43 | return exports;
44 | });
45 |
--------------------------------------------------------------------------------
/Evented.js:
--------------------------------------------------------------------------------
1 | define(["./aspect", "./on"], function(aspect, on){
2 | // module:
3 | // dojo/Evented
4 | // summary:
5 | // The export of this module is a class that can be used as a mixin or base class,
6 | // to add on() and emit() methods to a class
7 | // for listening for events and emitting events:
8 | //
9 | // | define(["dojo/Evented"], function(Evented){
10 | // | var EventedWidget = dojo.declare([Evented, dijit._Widget], {...});
11 | // | widget = new EventedWidget();
12 | // | widget.on("open", function(event){
13 | // | ... do something with event
14 | // | });
15 | // |
16 | // | widget.emit("open", {name:"some event", ...});
17 |
18 | "use strict";
19 | var after = aspect.after;
20 | function Evented(){
21 | }
22 | Evented.prototype = {
23 | on: function(type, listener){
24 | return on.parse(this, type, listener, function(target, type){
25 | return after(target, 'on' + type, listener, true);
26 | });
27 | },
28 | emit: function(type, event){
29 | var args = [this];
30 | args.push.apply(args, arguments);
31 | return on.emit.apply(on, args);
32 | }
33 | };
34 | return Evented;
35 | });
36 |
--------------------------------------------------------------------------------
/tests/_base/sniff.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | dojo/_base/sniff test
4 |
13 |
14 |
27 |
28 |
29 | dojo/_base/sniff results
30 | Note that dojo/_base/sniff is deprecated, replaced by dojo/sniff.
31 |
35 |
36 |
--------------------------------------------------------------------------------
/tests/_base/loader/publishRequireResult.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/tests/store/JsonRest.js:
--------------------------------------------------------------------------------
1 | define(["dojo", "doh", "require", "dojo/store/JsonRest"], function(dojo, doh, require){
2 | var store = new dojo.store.JsonRest({target: require.toUrl("dojo/tests/store/x.y").match(/(.+)x\.y$/)[1]});
3 | doh.register("tests.store.JsonRest",
4 | [
5 | function testGet(t){
6 | var d = new doh.Deferred();
7 | store.get("node1.1").then(function(object){
8 | t.is(object.name, "node1.1");
9 | t.is(object.someProperty, "somePropertyA1");
10 | d.callback(true);
11 | });
12 | return d;
13 | },
14 | function testQuery(t){
15 | var d = new doh.Deferred();
16 | store.query("treeTestRoot").then(function(results){
17 | var object = results[0];
18 | t.is(object.name, "node1");
19 | t.is(object.someProperty, "somePropertyA");
20 | d.callback(true);
21 | });
22 | return d;
23 | },
24 | function testQueryIterative(t){
25 | var d = new doh.Deferred();
26 | var i = 0;
27 | store.query("treeTestRoot").forEach(function(object){
28 | i++;
29 | console.log(i);
30 | t.is(object.name, "node" + i);
31 | }).then(function(){
32 | d.callback(true);
33 | });
34 | return d;
35 | }
36 | ]
37 | );
38 | });
39 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/layers/allplugins-text.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: allplugins-text Test
5 |
6 |
7 |
8 |
27 |
28 |
29 | require.js: allplugins-text Test
30 | REQUIRES a built allplugins-require.js file built from build.sh in this directory
31 | Check console for messages
32 |
33 |
34 |
--------------------------------------------------------------------------------
/topic.js:
--------------------------------------------------------------------------------
1 | define(["./Evented"], function(Evented){
2 | // summary:
3 | // The export of this module is a pubsub hub
4 | // You can also use listen function itself as a pub/sub hub:
5 | // | topic.subscribe("some/topic", function(event){
6 | // | ... do something with event
7 | // | });
8 | // | topic.publish("some/topic", {name:"some event", ...});
9 |
10 | var hub = new Evented;
11 | return {
12 | publish: function(topic, event){
13 | // summary:
14 | // Publishes a message to a topic on the pub/sub hub. All arguments after
15 | // the first will be passed to the subscribers, so any number of arguments
16 | // can be provided (not just event).
17 | // topic: String
18 | // The name of the topic to publish to
19 | // event: Object
20 | // An event to distribute to the topic listeners
21 | return hub.emit.apply(hub, arguments);
22 | },
23 | subscribe: function(topic, listener){
24 | // summary:
25 | // Subscribes to a topic on the pub/sub hub
26 | // topic: String
27 | // The topic to subscribe to
28 | // listener: Function
29 | // A function to call when a message is published to the given topic
30 | return hub.on.apply(hub, arguments);
31 | }
32 | };
33 | });
34 |
--------------------------------------------------------------------------------
/tests/nls/salutations.js:
--------------------------------------------------------------------------------
1 | define({ root:
2 | //begin v1.x content
3 | {
4 | ar: "Arabic",
5 | cs: "Czech",
6 | de: "German",
7 | el: "Greek",
8 | en: "English",
9 | 'en-au': "English (Australia)",
10 | 'en-us-hawaii': "English (US-Hawaii)",
11 | 'en-us-new_york-brooklyn': "English (Brooklynese)",
12 | 'en-us-texas': "English (Texas)",
13 | es: "Spanish",
14 | fa: "Farsi",
15 | fr: "French",
16 | he: "Hebrew",
17 | hi: "Hindi",
18 | it: "Italian",
19 | ja: "Japanese",
20 | ko: "Korean",
21 | pl: "Polish",
22 | pt: "Portugese",
23 | ru: "Russian",
24 | sw: "Kiswahili",
25 | th: "Thai",
26 | tr: "Turkish",
27 | yi: "Yiddish",
28 | 'zh-cn': "Chinese (Simplified)",
29 | 'zh-tw': "Chinese (Traditional)",
30 | hello: "Hello",
31 | dojo: "Dojo",
32 | hello_dojo: "${hello}, ${dojo}!",
33 | file_not_found:"The file you requested, ${0}, is not found."
34 | }
35 | //end v1.x content
36 | ,
37 | "zh-tw":1,
38 | "zh-cn":1,
39 | "yi":1,
40 | "tr":1,
41 | "th":1,
42 | "sw":1,
43 | "ru":1,
44 | "pt":1,
45 | "pl":1,
46 | "ko":1,
47 | "ja":1,
48 | "it":1,
49 | "hi":1,
50 | "he":1,
51 | "fr":1,
52 | "fa":1,
53 | "es":1,
54 | "en-us-texas":1,
55 | "en-us-new_york-brooklyn":1,
56 | "en-us-hawaii":1,
57 | "en-au":1,
58 | "el":1,
59 | "de":1,
60 | "cs":1,
61 | "ar":1
62 | });
63 |
--------------------------------------------------------------------------------
/tests/Stateful.js:
--------------------------------------------------------------------------------
1 | define(["../main", "doh", "../Stateful"], function(dojo, doh){
2 |
3 | doh.register("tests.Stateful", [
4 | function getSetWatch(t){
5 | var s = new dojo.Stateful({
6 | foo: 3
7 | });
8 | doh.is(s.get("foo"), 3);
9 | var watching = s.watch("foo", function(name, oldValue, value){
10 | doh.is("foo", name);
11 | doh.is(3, oldValue);
12 | doh.is(4, value);
13 | doh.is(4, s.get("foo"));
14 | });
15 | s.set("foo", 4);
16 | doh.is(4, s.get("foo"));
17 | watching.unwatch();
18 | s.set("foo", 5);
19 | doh.is(5, s.get("foo"));
20 | },
21 | function setHash(t){
22 | var s = new dojo.Stateful();
23 | s.set({
24 | foo:3,
25 | bar: 5
26 | });
27 | doh.is(3, s.get("foo"));
28 | doh.is(5, s.get("bar"));
29 | var s2 = new dojo.Stateful();
30 | s2.set(s);
31 | doh.is(3, s2.get("foo"));
32 | doh.is(5, s2.get("bar"));
33 | },
34 | function wildcard(t){
35 | var s = new dojo.Stateful();
36 | s.set({
37 | foo:3,
38 | bar: 5
39 | });
40 | var wildcard = 0;
41 | var foo = 0;
42 | s.watch(function(){
43 | wildcard++;
44 | });
45 | s.watch("foo", function(){
46 | foo++;
47 | });
48 | s.set("foo", 4);
49 | s.set("bar", 6);
50 | doh.is(2, wildcard);
51 | doh.is(1, foo);
52 | }
53 | ]);
54 |
55 | });
--------------------------------------------------------------------------------
/tests/_base/loader/fastbackTest.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | Testing dojo.addOnLoad()
6 |
7 |
21 |
22 |
23 | Testing dojo.addOnLoad() to determine if fastback is working
24 |
25 | click one of the links below to try it out and then hit your back
26 | button. Watch your server logs to see what's going on and view
27 | source to understand the test.
28 |
29 | The Dojo Toolkit
30 | Dojo Campus
31 | Google
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/text/textOnly.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Text Test
5 |
10 |
11 |
12 |
36 |
37 |
38 | require.js: Text Test
39 | Test for usage of text! require plugin.
40 |
Check console for messages
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tests/module.js:
--------------------------------------------------------------------------------
1 | define([
2 | "dojo/tests/_base",
3 | "dojo/tests/cache",
4 | "dojo/tests/i18n",
5 | "dojo/tests/cldr",
6 | "dojo/tests/store",
7 | "dojo/tests/data",
8 | "dojo/tests/date",
9 | "dojo/tests/on",
10 | "dojo/tests/mouse",
11 | "dojo/tests/json",
12 | "dojo/tests/aspect",
13 | "dojo/tests/number",
14 | "dojo/tests/currency",
15 | "dojo/tests/AdapterRegistry",
16 | "dojo/tests/regexp",
17 | "dojo/tests/store",
18 | "dojo/tests/string",
19 | "dojo/tests/colors",
20 | "dojo/tests/DeferredList",
21 | "dojo/tests/Stateful",
22 | "dojo/has!host-browser?dojo/tests/behavior",
23 | "dojo/has!host-browser?dojo/tests/parser",
24 | "dojo/has!host-browser?dojo/tests/html",
25 | "dojo/has!host-browser?dojo/tests/fx",
26 | "dojo/has!host-browser?dojo/tests/io/script",
27 | "dojo/has!host-browser?dojo/tests/io/iframe",
28 | "dojo/has!host-browser?dojo/tests/back-hash",
29 | "dojo/has!host-browser?dojo/tests/hash",
30 | "dojo/has!host-browser?dojo/tests/rpc",
31 | "dojo/has!host-browser?dojo/tests/cookie",
32 | "dojo/has!host-browser?dojo/tests/NodeList-traverse",
33 | "dojo/has!host-browser?dojo/tests/NodeList-manipulate",
34 | "dojo/has!host-browser?dojo/tests/NodeList-data",
35 | "dojo/has!host-browser?dojo/tests/uacss",
36 | "dojo/has!host-browser?dojo/tests/window",
37 | "dojo/has!host-browser?dojo/tests/touch"
38 | ], 1);
39 |
--------------------------------------------------------------------------------
/tests/resources/test_JsonRPCMediator.php:
--------------------------------------------------------------------------------
1 | sudo pear install File
10 | // Your server will also need the Pear library directory included in PHP's
11 | // include_path configuration directive
12 | // require_once('File.php');
13 |
14 | // ensure that we don't try to send "html" down to the client
15 | header("Content-Type: text/plain");
16 |
17 | $json = new Services_JSON;
18 | //$fp = new File();
19 |
20 | $results = array();
21 | $results['error'] = null;
22 |
23 | $jsonRequest = file_get_contents('php://input');
24 | //$jsonRequest = '{"params":["Blah"],"method":"myecho","id":86}';
25 |
26 | $req = $json->decode($jsonRequest);
27 |
28 | include("./testClass.php");
29 | $testObject = new testClass();
30 |
31 | $method = $req->method;
32 | if ($method != "triggerRpcError") {
33 | $ret = call_user_func_array(array($testObject,$method),$req->params);
34 | $results['result'] = $ret;
35 | } else {
36 | $results['error'] = "Triggered RPC Error test";
37 | }
38 | $results['id'] = $req->id;
39 |
40 | $encoded = $json->encode($results);
41 |
42 | print $encoded;
43 | ?>
44 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/depoverlap.js:
--------------------------------------------------------------------------------
1 | require(["require", "uno", "doh"],
2 | function (require, uno, doh) {
3 | doh.register(
4 | "depoverlap",
5 | [
6 | function depoverlap(t){
7 | //First confirm there is only one script tag for each
8 | //module:
9 | var scripts = document.getElementsByTagName("script"),
10 | i, counts = {}, modName, props, something;
11 | for (var i = scripts.length - 1; i > -1; i--) {
12 | modName = scripts[i].getAttribute("data-requiremodule");
13 | if (modName) {
14 | if (!(modName in counts)) {
15 | counts[modName] = 0;
16 | }
17 | counts[modName] += 1;
18 | }
19 | }
20 |
21 | //Now that we counted all the modules make sure count
22 | //is always one.
23 | for (prop in counts) {
24 | t.is(1, counts[prop]);
25 | }
26 |
27 | t.is("uno", uno.name);
28 | something = uno.doSomething();
29 | t.is("dos", something.dosName);
30 | t.is("tres", something.tresName);
31 | }
32 | ]
33 | );
34 | doh.run();
35 | });
36 |
--------------------------------------------------------------------------------
/tests/_base/loader/8976.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 | Testcase for #8976
8 | Test case for #8976 , an async load issue with Firefox even
9 | though the loading should be synchronous. Click the button then check console log for output of test. If "count = 1, worked"
10 | shows up instead of an error, then the test is successful.
11 |
12 |
13 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/tests/cache.js:
--------------------------------------------------------------------------------
1 | define(["../main", "doh", "require", "../cache", "../_base/url"], function(dojo, doh, require) {
2 | doh.register("tests.cache", [{
3 | name: "dojo.cache",
4 | runTest: function(t){
5 | var expected = "Hello World ";
6 |
7 | t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "regular.html")));
8 | t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "sanitized.html", {sanitize: true})));
9 |
10 | //Test object variant for module.
11 | var objPath = require.toUrl("dojo/tests/cache/object.html");
12 | t.is(expected, dojo.trim(dojo.cache(new dojo._Url(objPath), {sanitize: true})));
13 |
14 | //Just a couple of other passes just to make sure on manual inspection that the
15 | //files are loaded over the network only once.
16 | t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "regular.html")));
17 | t.is(expected, dojo.trim(dojo.cache("dojo.tests.cache", "sanitized.html", {sanitize: true})));
18 | t.is(expected, dojo.trim(dojo.cache(new dojo._Url(objPath), {sanitize: true})));
19 |
20 | //Make sure unset cache does not throw errors
21 | t.is(null, dojo.cache("dojo.tests.cache", "regular.html", null));
22 |
23 | //Set empty string as value
24 | t.is("", dojo.cache("dojo.tests.cache", "regular.html", ""));
25 | t.is("", dojo.cache("dojo.tests.cache", "regular.html"));
26 | }
27 | }
28 | ]);
29 | });
30 |
--------------------------------------------------------------------------------
/cldr/monetary.js:
--------------------------------------------------------------------------------
1 | define(["../main"], function(dojo) {
2 | // module:
3 | // dojo/cldr/monetary
4 | // summary:
5 | // TODOC
6 |
7 | var monetary = dojo.getObject("dojo.cldr.monetary", true);
8 | /*=====
9 | monetary = dojo.cldr.monetary;
10 | =====*/
11 |
12 | monetary.getData = function(/*String*/code){
13 | // summary: A mapping of currency code to currency-specific formatting information. Returns a unique object with properties: places, round.
14 | // code: an [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code
15 |
16 | // from http://www.unicode.org/cldr/data/common/supplemental/supplementalData.xml:supplementalData/currencyData/fractions
17 |
18 | var placesData = {
19 | ADP:0,AFN:0,ALL:0,AMD:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,
20 | COP:0,CRC:0,DJF:0,ESP:0,GNF:0,GYD:0,HUF:0,IDR:0,IQD:0,
21 | IRR:3,ISK:0,ITL:0,JOD:3,JPY:0,KMF:0,KPW:0,KRW:0,KWD:3,
22 | LAK:0,LBP:0,LUF:0,LYD:3,MGA:0,MGF:0,MMK:0,MNT:0,MRO:0,
23 | MUR:0,OMR:3,PKR:0,PYG:0,RSD:0,RWF:0,SLL:0,SOS:0,STD:0,
24 | SYP:0,TMM:0,TND:3,TRL:0,TZS:0,UGX:0,UZS:0,VND:0,VUV:0,
25 | XAF:0,XOF:0,XPF:0,YER:0,ZMK:0,ZWD:0
26 | };
27 |
28 | var roundingData = {CHF:5};
29 |
30 | var places = placesData[code], round = roundingData[code];
31 | if(typeof places == "undefined"){ places = 2; }
32 | if(typeof round == "undefined"){ round = 0; }
33 |
34 | return {places: places, round: round}; // Object
35 | };
36 |
37 | return monetary;
38 | });
39 |
--------------------------------------------------------------------------------
/tests/_base/loader/modulePaths.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/simple.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Simple Test
5 |
6 |
7 |
8 |
9 |
30 |
31 |
32 | require.js: Simple Test
33 | Check console for messages
34 |
35 |
36 |
--------------------------------------------------------------------------------
/dojo.profile.js:
--------------------------------------------------------------------------------
1 | var profile = (function(){
2 | var testResourceRe = /^dojo\/tests\//,
3 |
4 | copyOnly = function(filename, mid){
5 | var list = {
6 | "dojo/dojo.profile":1,
7 | "dojo/package.json":1,
8 | "dojo/OpenAjax":1,
9 | "dojo/tests":1,
10 | // these are test modules that are not intended to ever be built
11 | "dojo/tests/_base/loader/requirejs/requirejs-setup":1,
12 | "dojo/tests/_base/loader/requirejs/dataMain":1,
13 | "dojo/tests/_base/loader/requirejs/depoverlap":1,
14 | "dojo/tests/_base/loader/requirejs/simple-tests":1,
15 | "dojo/tests/_base/loader/requirejs/relative/relative-tests":1,
16 | "dojo/tests/_base/loader/requirejs/exports/exports-tests":1
17 | };
18 | return (mid in list) || /^dojo\/_base\/config\w+$/.test(mid) || (/^dojo\/resources\//.test(mid) && !/\.css$/.test(filename)) || /(png|jpg|jpeg|gif|tiff)$/.test(filename);
19 | };
20 |
21 | return {
22 | resourceTags:{
23 | test: function(filename, mid){
24 | return testResourceRe.test(mid) || mid=="dojo/tests" || mid=="dojo/robot" || mid=="dojo/robotx";
25 | },
26 |
27 | copyOnly: function(filename, mid){
28 | return copyOnly(filename, mid);
29 | },
30 |
31 | amd: function(filename, mid){
32 | return !testResourceRe.test(mid) && !copyOnly(filename, mid) && /\.js$/.test(filename);
33 | }
34 | },
35 |
36 | trees:[
37 | [".", ".", /(\/\.)|(~$)/]
38 | ]
39 | };
40 | })();
41 |
--------------------------------------------------------------------------------
/tests/_base/Color.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests._base.Color");
2 |
3 | (function(){
4 | var white = dojo.colorFromString("white").toRgba();
5 | var maroon = dojo.colorFromString("maroon").toRgba();
6 | var verifyColor = function(t, source, expected){
7 | var color = new dojo.Color(source);
8 | t.is(expected, color.toRgba());
9 | dojo.forEach(color.toRgba(), function(n){
10 | t.is("number", typeof(n));
11 | });
12 | };
13 |
14 | doh.register("tests._base.Color",
15 | [
16 | function testColor1(t){ verifyColor(t, "maroon", maroon); },
17 | function testColor2(t){ verifyColor(t, "white", white); },
18 | function testColor3(t){ verifyColor(t, "#fff", white); },
19 | function testColor4(t){ verifyColor(t, "#ffffff", white); },
20 | function testColor5(t){ verifyColor(t, "rgb(255,255,255)", white); },
21 | function testColor6(t){ verifyColor(t, "#800000", maroon); },
22 | function testColor7(t){ verifyColor(t, "rgb(128, 0, 0)", maroon); },
23 | function testColor8(t){ verifyColor(t, "rgba(128, 0, 0, 0.5)", [128, 0, 0, 0.5]); },
24 | function testColor9(t){ verifyColor(t, maroon, maroon); },
25 | function testColor10(t){ verifyColor(t, [1, 2, 3], [1, 2, 3, 1]); },
26 | function testColor11(t){ verifyColor(t, [1, 2, 3, 0.5], [1, 2, 3, 0.5]); },
27 | function testColor12(t){ verifyColor(t, dojo.blendColors(new dojo.Color("black"), new dojo.Color("white"), 0.5), [128, 128, 128, 1]); }
28 | ]
29 | );
30 | })();
31 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/config.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Config Test
5 |
33 |
34 |
35 |
36 |
37 | require.js: Config Test
38 | Tests require being defined as an object with init and ready configuration.
39 | Check console for messages.
40 |
41 |
42 |
--------------------------------------------------------------------------------
/resources/iframe_history.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
38 |
39 |
40 | The Dojo Toolkit -- iframe_history.html
41 |
42 | This file is used in Dojo's back/fwd button management.
43 |
44 |
45 |
--------------------------------------------------------------------------------
/data/api/Request.js:
--------------------------------------------------------------------------------
1 | define(["../../_base/declare"], function(declare) {
2 | // module:
3 | // dojo/data/api/Request
4 | // summary:
5 | // TODOC
6 |
7 |
8 | return declare("dojo.data.api.Request", null, {
9 | // summary:
10 | // This class defines out the semantics of what a 'Request' object looks like
11 | // when returned from a fetch() method. In general, a request object is
12 | // nothing more than the original keywordArgs from fetch with an abort function
13 | // attached to it to allow users to abort a particular request if they so choose.
14 | // No other functions are required on a general Request object return. That does not
15 | // inhibit other store implementations from adding extensions to it, of course.
16 | //
17 | // This is an abstract API that data provider implementations conform to.
18 | // This file defines methods signatures and intentionally leaves all the
19 | // methods unimplemented.
20 | //
21 | // For more details on fetch, see dojo.data.api.Read.fetch().
22 |
23 | abort: function(){
24 | // summary:
25 | // This function is a hook point for stores to provide as a way for
26 | // a fetch to be halted mid-processing.
27 | // description:
28 | // This function is a hook point for stores to provide as a way for
29 | // a fetch to be halted mid-processing. For more details on the fetch() api,
30 | // please see dojo.data.api.Read.fetch().
31 | throw new Error('Unimplemented API: dojo.data.api.Request.abort');
32 | }
33 | });
34 |
35 | });
36 |
--------------------------------------------------------------------------------
/cldr/nls/number.js:
--------------------------------------------------------------------------------
1 | define({ root:
2 |
3 | //begin v1.x content
4 | {
5 | "scientificFormat": "#E0",
6 | "currencySpacing-afterCurrency-currencyMatch": "[:letter:]",
7 | "infinity": "∞",
8 | "list": ";",
9 | "percentSign": "%",
10 | "minusSign": "-",
11 | "currencySpacing-beforeCurrency-surroundingMatch": "[:digit:]",
12 | "decimalFormat-short": "000T",
13 | "currencySpacing-afterCurrency-insertBetween": " ",
14 | "nan": "NaN",
15 | "nativeZeroDigit": "0",
16 | "plusSign": "+",
17 | "currencySpacing-afterCurrency-surroundingMatch": "[:digit:]",
18 | "currencySpacing-beforeCurrency-currencyMatch": "[:letter:]",
19 | "currencyFormat": "¤ #,##0.00",
20 | "perMille": "‰",
21 | "group": ",",
22 | "percentFormat": "#,##0%",
23 | "decimalFormat": "#,##0.###",
24 | "decimal": ".",
25 | "patternDigit": "#",
26 | "currencySpacing-beforeCurrency-insertBetween": " ",
27 | "exponential": "E"
28 | }
29 | //end v1.x content
30 | ,
31 | "ar": true,
32 | "ca": true,
33 | "cs": true,
34 | "da": true,
35 | "de": true,
36 | "el": true,
37 | "en": true,
38 | "en-au": true,
39 | "en-gb": true,
40 | "es": true,
41 | "fi": true,
42 | "fr": true,
43 | "fr-ch": true,
44 | "he": true,
45 | "hu": true,
46 | "it": true,
47 | "ja": true,
48 | "ko": true,
49 | "nb": true,
50 | "nl": true,
51 | "pl": true,
52 | "pt": true,
53 | "pt-pt": true,
54 | "ro": true,
55 | "ru": true,
56 | "sk": true,
57 | "sl": true,
58 | "sv": true,
59 | "th": true,
60 | "tr": true,
61 | "zh": true,
62 | "zh-hant": true,
63 | "zh-hk": true
64 | });
--------------------------------------------------------------------------------
/tests/dnd/dndDefault.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | there are basically all the classes you can set
4 | for the various dojo.dnd states and elements in
5 | their simplest form. hacking welcome.
6 |
7 | */
8 | .container {
9 | border: 3px solid #ccc;
10 | padding: 1em 3em;
11 | cursor: default;
12 | radius: 8pt;
13 | background: #fff;
14 | -moz-border-radius: 8pt 8pt;
15 | }
16 |
17 | .dojoDndContainerOver {
18 | /* cursor:pointer; */
19 | border: 3px solid #aaa;
20 | }
21 |
22 | .dojoDndTargetDisabled {
23 | background: #eee;
24 | }
25 |
26 | .dojoDndItem {
27 | padding: 3px;
28 | }
29 |
30 | .dj_ff2 .dojoDndItem {
31 | -moz-user-select: none; /* workaround FF2 dragging bug, see #6345, #4854, #6350 */
32 | }
33 |
34 | .dojoDndItemOver {
35 | background: #ededed;
36 | cursor: pointer;
37 | }
38 |
39 | .dojoDndItemSelected {
40 | background: #ccf; color: #444;
41 | }
42 |
43 | .dojoDndItemAnchor {
44 | background: #ccf; color: black;
45 | }
46 |
47 | .dojoDndItemOver .dojoDndItemSelected {
48 | background: #ededed;
49 | }
50 |
51 | .dojoDndItemOver .dojoDndItemAnchor {
52 | background: #ededed;
53 | }
54 |
55 | .dojoDndItemBefore {
56 | border-top: 2px solid #369;
57 | }
58 |
59 | .dojoDndItemAfter {
60 | border-bottom: 2px solid #369;
61 | }
62 |
63 | .dojoDndAvatar {
64 | border: 2px solid #ccc;
65 | font-size: 75%;
66 | -moz-border-radius: 8pt 8pt;
67 | radius: 8pt;
68 | }
69 |
70 | .dojoDndAvatarHeader {
71 | background: #aaa;
72 | }
73 |
74 | .dojoDndAvatarItem {
75 | background: #fff;
76 | border-bottom: 1px solid #666;
77 | }
--------------------------------------------------------------------------------
/tests/_base/loader/config-sniff.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
14 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/cldr/nls/el/hebrew.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "quarters-format-abbr": [
5 | "Τ1",
6 | "Τ2",
7 | "Τ3",
8 | "Τ4"
9 | ],
10 | "dateFormat-medium": "d MMM y",
11 | "dateFormatItem-MMMEd": "E, d MMM",
12 | "dateFormatItem-MEd": "E, d/M",
13 | "dateFormatItem-yMEd": "EEE, d/M/yyyy",
14 | "eraNarrow": [
15 | "π.μ."
16 | ],
17 | "timeFormat-full": "h:mm:ss a zzzz",
18 | "dateFormatItem-Md": "d/M",
19 | "dateFormatItem-EEEd": "EEE d",
20 | "eraNames": [
21 | "π.μ."
22 | ],
23 | "days-standAlone-narrow": [
24 | "Κ",
25 | "Δ",
26 | "Τ",
27 | "Τ",
28 | "Π",
29 | "Π",
30 | "Σ"
31 | ],
32 | "dayPeriods-format-wide-pm": "μ.μ.",
33 | "dayPeriods-format-wide-am": "π.μ.",
34 | "timeFormat-medium": "h:mm:ss a",
35 | "dateFormat-long": "d MMMM y",
36 | "dateFormat-short": "d/M/yy",
37 | "dateFormatItem-yMMMEd": "EEE, d MMM y",
38 | "dateFormatItem-yM": "M/yyyy",
39 | "timeFormat-short": "h:mm a",
40 | "eraAbbr": [
41 | "π.μ."
42 | ],
43 | "timeFormat-long": "h:mm:ss a z",
44 | "days-format-wide": [
45 | "Κυριακή",
46 | "Δευτέρα",
47 | "Τρίτη",
48 | "Τετάρτη",
49 | "Πέμπτη",
50 | "Παρασκευή",
51 | "Σάββατο"
52 | ],
53 | "dateFormatItem-yMMM": "LLL y",
54 | "quarters-format-wide": [
55 | "1ο τρίμηνο",
56 | "2ο τρίμηνο",
57 | "3ο τρίμηνο",
58 | "4ο τρίμηνο"
59 | ],
60 | "dateFormat-full": "EEEE, d MMMM y",
61 | "dateFormatItem-MMMd": "d MMM",
62 | "days-format-abbr": [
63 | "Κυρ",
64 | "Δευ",
65 | "Τρι",
66 | "Τετ",
67 | "Πεμ",
68 | "Παρ",
69 | "Σαβ"
70 | ]
71 | }
72 | //end v1.x content
73 | );
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/uniques/uniques.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Unique Dependency Test
5 |
10 |
11 |
12 |
37 |
38 |
39 | require.js: Unique Dependency Test
40 | Make sure if a dependency is listed more than once code still operates correctly.
41 | Check console for messages
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/io/scriptJsonp.js:
--------------------------------------------------------------------------------
1 | function getJsonpCallback(url){
2 | var result = null;
3 | var idMatch = url.match(/jsonp=(.*?)(&|$)/);
4 | if(idMatch){
5 | result = idMatch[1];
6 | }else{
7 | //jsonp didn't match, so maybe it is the jsonCallback thing.
8 | idMatch = url.match(/callback=(.*?)(&|$)/);
9 | if(idMatch){
10 | result = idMatch[1];
11 | }
12 | }
13 |
14 | if(result){
15 | result = decodeURIComponent(result);
16 | }
17 | return result;
18 | }
19 |
20 | function findJsonpDone(){
21 | var result = false;
22 | var scriptUrls = getScriptUrls();
23 |
24 | for(var i = 0; i < scriptUrls.length; i++){
25 | var jsonp = getJsonpCallback(scriptUrls[i]);
26 | if(jsonp){
27 | eval(jsonp + "({animalType: 'mammal'});");
28 | result = true;
29 | break;
30 | }
31 | }
32 | return result;
33 | }
34 |
35 | function getScriptUrls(){
36 | //Get the script tags in the page to figure what state we are in.
37 | var scripts = document.getElementsByTagName('script');
38 | var scriptUrls = new Array();
39 | for(var i = 0; scripts && i < scripts.length; i++){
40 | var scriptTag = scripts[i];
41 | if(scriptTag.id.indexOf("dojoIoScript") == 0){
42 | scriptUrls.push(scriptTag.src);
43 | }
44 | }
45 |
46 | return scriptUrls;
47 | }
48 |
49 | function doJsonpCallback(){
50 | if(!findJsonpDone()){
51 | alert('ERROR: Could not jsonp callback!');
52 | }
53 | }
54 |
55 | //Set a timeout to do the callback check, since MSIE won't see the SCRIPT tag until
56 | //we complete processing of this page.
57 | setTimeout(function(){doJsonpCallback();}, 300);
58 |
--------------------------------------------------------------------------------
/tests/mouse.js:
--------------------------------------------------------------------------------
1 | dojo.provide("dojo.tests.mouse");
2 |
3 | var on = dojo.require("dojo.on");
4 | var mouse = dojo.require("dojo.mouse");
5 | doh.register("tests.on",
6 | [
7 | function mouseenter(t){
8 | var order = [];
9 | var div = document.body.appendChild(document.createElement("div"));
10 | div2 = div.appendChild(document.createElement("div"));
11 | div2.className = "item two";
12 | div2.id = 2;
13 | div3 = div.appendChild(document.createElement("div"));
14 | div3.className = "item three";
15 | div3.id = 3;
16 | div4 = div2.appendChild(document.createElement("div"));
17 | on(div, on.selector(".item", mouse.enter), function(){
18 | order.push(this.id);
19 | })
20 | on.emit(div, "mouseover", {
21 | bubbles: true,
22 | relatedTarget: document.body
23 | });
24 | on.emit(div3, "mouseover", {
25 | bubbles: true,
26 | relatedTarget: div
27 | });
28 | on.emit(div3, "mouseover", {
29 | bubbles: true,
30 | relatedTarget: div3
31 | });
32 | on.emit(div2, "mouseover", {
33 | bubbles: true,
34 | relatedTarget: div3
35 | });
36 | on.emit(div4, "mouseover", {
37 | bubbles: true,
38 | relatedTarget: div2
39 | });
40 | on.emit(div2, "mouseover", {
41 | bubbles: true,
42 | relatedTarget: div4
43 | });
44 | on.emit(div, "mouseover", {
45 | bubbles: true,
46 | relatedTarget: div2
47 | });
48 | on.emit(div4, "mouseover", {
49 | bubbles: true,
50 | relatedTarget: div
51 | });
52 | t.is(order, [3, 2, 2]);
53 |
54 | }
55 | ]
56 | );
57 |
--------------------------------------------------------------------------------
/_base/event.js:
--------------------------------------------------------------------------------
1 | define(["./kernel", "../on", "../has", "../dom-geometry"], function(dojo, on, has, dom){
2 | // module:
3 | // dojo/_base/event
4 | // summary:
5 | // This module defines dojo DOM event API.
6 | if(on._fixEvent){
7 | var fixEvent = on._fixEvent;
8 | on._fixEvent = function(evt, se){
9 | // add some additional normalization for back-compat, this isn't in on.js because it is somewhat more expensive
10 | evt = fixEvent(evt, se);
11 | if(evt){
12 | dom.normalizeEvent(evt);
13 | }
14 | return evt;
15 | };
16 | }
17 | dojo.fixEvent = function(/*Event*/ evt, /*DOMNode*/ sender){
18 | // summary:
19 | // normalizes properties on the event object including event
20 | // bubbling methods, keystroke normalization, and x/y positions
21 | // evt: Event
22 | // native event object
23 | // sender: DOMNode
24 | // node to treat as "currentTarget"
25 | if(on._fixEvent){
26 | return on._fixEvent(evt, sender);
27 | }
28 | return evt; // Event
29 | };
30 |
31 | dojo.stopEvent = function(/*Event*/ evt){
32 | // summary:
33 | // prevents propagation and clobbers the default action of the
34 | // passed event
35 | // evt: Event
36 | // The event object. If omitted, window.event is used on IE.
37 | if(has("dom-addeventlistener") || (evt && evt.preventDefault)){
38 | evt.preventDefault();
39 | evt.stopPropagation();
40 | }else{
41 | evt = evt || window.event;
42 | evt.cancelBubble = true;
43 | on._preventDefault.call(evt);
44 | }
45 | };
46 |
47 | return {
48 | fix: dojo.fixEvent,
49 | stop: dojo.stopEvent
50 | };
51 | });
52 |
--------------------------------------------------------------------------------
/cldr/nls/zh-tw/gregorian.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "quarters-standAlone-wide": [
5 | "第1季",
6 | "第2季",
7 | "第3季",
8 | "第4季"
9 | ],
10 | "quarters-format-abbr": [
11 | "第1季",
12 | "第2季",
13 | "第3季",
14 | "第4季"
15 | ],
16 | "dateFormat-medium": "yyyy/M/d",
17 | "field-second": "秒",
18 | "quarters-standAlone-abbr": [
19 | "第1季",
20 | "第2季",
21 | "第3季",
22 | "第4季"
23 | ],
24 | "dateFormatItem-MMdd": "MM/dd",
25 | "dateFormatItem-MEd": "M/d(E)",
26 | "dateFormatItem-yMEd": "yyyy/M/d(EEE)",
27 | "field-week": "週",
28 | "dateFormatItem-H": "H時",
29 | "eraNarrow": [
30 | "西元前",
31 | "西元"
32 | ],
33 | "field-day-relative+-3": "大前天",
34 | "timeFormat-full": "zzzzah時mm分ss秒",
35 | "dateFormatItem-Md": "M/d",
36 | "months-standAlone-narrow": [
37 | "1",
38 | "2",
39 | "3",
40 | "4",
41 | "5",
42 | "6",
43 | "7",
44 | "8",
45 | "9",
46 | "10",
47 | "11",
48 | "12"
49 | ],
50 | "eraNames": [
51 | "西元前",
52 | "西元"
53 | ],
54 | "field-minute": "分鐘",
55 | "field-hour": "小時",
56 | "field-day-relative+2": "後天",
57 | "field-day-relative+3": "大後天",
58 | "dateFormat-short": "yy/M/d",
59 | "dateFormatItem-yMMMEd": "y年M月d日EEE",
60 | "field-era": "年代",
61 | "dateFormatItem-yM": "yyyy/M",
62 | "timeFormat-long": "zah時mm分ss秒",
63 | "eraAbbr": [
64 | "西元前",
65 | "西元"
66 | ],
67 | "dateFormatItem-h": "ah時",
68 | "dateFormatItem-yMMM": "y年M月",
69 | "quarters-format-wide": [
70 | "第1季",
71 | "第2季",
72 | "第3季",
73 | "第4季"
74 | ],
75 | "field-weekday": "週天",
76 | "field-zone": "區域",
77 | "dateFormatItem-Ed": "d日(E)"
78 | }
79 | //end v1.x content
80 | );
--------------------------------------------------------------------------------
/tests/io/iframeUploadTest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
35 |
36 |
37 | This file tests dojo.io.iframe upload using a form POST with a file upload button.
38 |
39 |
40 | Note: This test makes a form POST to upload.cgi. This cgi needs to be made executable for this test to work, and it won't work from local disk.
41 |
42 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/tests/io/upload.cgi:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python
2 |
3 | # FROM: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/273844
4 |
5 | import cgi
6 | import cgitb; cgitb.enable()
7 | import os, sys
8 | import string
9 |
10 | UPLOAD_DIR = "/tmp/upload/"
11 | form = cgi.FieldStorage()
12 |
13 | dbg = []
14 |
15 | def debug(dbgstr):
16 | dbg.append(str(dbgstr))
17 |
18 | def save_uploaded_file(form_field, upload_dir):
19 | global form
20 | if not form.has_key(form_field):
21 | debug("didn't find it! (1)")
22 | return
23 | fileitem = form[form_field]
24 | if not fileitem.file:
25 | debug(form.getvalue(form_field, ""))
26 | debug(fileitem.__dict__)
27 | debug("didn't find it! (2)")
28 | return
29 | fout = file(os.path.join(upload_dir, fileitem.filename), 'wb')
30 | while 1:
31 | chunk = fileitem.file.read(100000)
32 | if not chunk: break
33 | fout.write (chunk)
34 | fout.close()
35 |
36 | retval = "false";
37 | fileFields = ""
38 |
39 | if form.has_key("fileFields"):
40 | fval = str(form.getvalue("fileFields", ""))
41 | fileFields = fval.split(",")
42 | debug("'fileCount': '" + str(len(fileFields)) + "',")
43 | for field in fileFields:
44 | debug("'fileField' : '"+field + "',")
45 | # Uncomment the line below to really test file save.
46 | # You may need to modify UPLOAD_DIR above.
47 | # save_uploaded_file(str(field).strip(), UPLOAD_DIR)
48 | retval = "true";
49 |
50 | debug("'retval': " + retval)
51 |
52 | print """Content-Type: text/html
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | """ % (string.join(dbg, "\n"))
63 |
--------------------------------------------------------------------------------
/tests/_base/loader/debugConsole.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | testing debugging and logging functions
6 |
10 |
11 |
33 |
34 |
35 |
36 | Testing console.* methods with djConfig.isDebug turned
37 |
38 |
39 | Append '?ON' to URL to try with djConfig.isDebug turned ON. Remove it to test djConfig.isDebug turned OFF
40 |
41 |
42 | If isDebug is off (false), then make sure console functions go to a simple empty function. You may see
43 | errors in the console, since console.error is being tested as part of this test.
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/tests/_base/loader/config-sniff-djConfig.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
13 |
17 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/keys.js:
--------------------------------------------------------------------------------
1 | define(["./_base/kernel", "./_base/sniff"], function(dojo, has) {
2 | // module:
3 | // dojo/keys
4 | // summary:
5 | // key constants
6 | // Constants
7 |
8 | // Public: client code should test
9 | // keyCode against these named constants, as the
10 | // actual codes can vary by browser.
11 | return dojo.keys = {
12 | // summary:
13 | // Definitions for common key values
14 | BACKSPACE: 8,
15 | TAB: 9,
16 | CLEAR: 12,
17 | ENTER: 13,
18 | SHIFT: 16,
19 | CTRL: 17,
20 | ALT: 18,
21 | META: has("webkit") ? 91 : 224, // the apple key on macs
22 | PAUSE: 19,
23 | CAPS_LOCK: 20,
24 | ESCAPE: 27,
25 | SPACE: 32,
26 | PAGE_UP: 33,
27 | PAGE_DOWN: 34,
28 | END: 35,
29 | HOME: 36,
30 | LEFT_ARROW: 37,
31 | UP_ARROW: 38,
32 | RIGHT_ARROW: 39,
33 | DOWN_ARROW: 40,
34 | INSERT: 45,
35 | DELETE: 46,
36 | HELP: 47,
37 | LEFT_WINDOW: 91,
38 | RIGHT_WINDOW: 92,
39 | SELECT: 93,
40 | NUMPAD_0: 96,
41 | NUMPAD_1: 97,
42 | NUMPAD_2: 98,
43 | NUMPAD_3: 99,
44 | NUMPAD_4: 100,
45 | NUMPAD_5: 101,
46 | NUMPAD_6: 102,
47 | NUMPAD_7: 103,
48 | NUMPAD_8: 104,
49 | NUMPAD_9: 105,
50 | NUMPAD_MULTIPLY: 106,
51 | NUMPAD_PLUS: 107,
52 | NUMPAD_ENTER: 108,
53 | NUMPAD_MINUS: 109,
54 | NUMPAD_PERIOD: 110,
55 | NUMPAD_DIVIDE: 111,
56 | F1: 112,
57 | F2: 113,
58 | F3: 114,
59 | F4: 115,
60 | F5: 116,
61 | F6: 117,
62 | F7: 118,
63 | F8: 119,
64 | F9: 120,
65 | F10: 121,
66 | F11: 122,
67 | F12: 123,
68 | F13: 124,
69 | F14: 125,
70 | F15: 126,
71 | NUM_LOCK: 144,
72 | SCROLL_LOCK: 145,
73 | UP_DPAD: 175,
74 | DOWN_DPAD: 176,
75 | LEFT_DPAD: 177,
76 | RIGHT_DPAD: 178,
77 | // virtual key mapping
78 | copyKey: has("mac") && !has("air") ? (has("safari") ? 91 : 224 ) : 17
79 | };
80 | });
81 |
--------------------------------------------------------------------------------
/tests/_base/loader/coolio/coolio-dev-legacy.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
25 |
26 |
27 |
28 |
38 |
39 |
40 |
41 | A Coolio Calendar
42 |
43 | A Dijit Calendar
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/tests/_base/loader/addLoadEvents.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | Testing dojo.addOnLoad(), dojo.addOnUnload() and dojo.addOnWindowUnload()
6 |
8 |
29 |
30 |
31 | Testing dojo.addOnLoad(), dojo.addOnUnload() and dojo.addOnWindowUnload()
32 |
33 | This page has registers a function with dojo.addOnLoad(), dojo.addOnUnload() and dojo.addOnWindowUnload.
34 |
35 | dojo.addOnLoad() : You should see 3 console messages about addOnLoad working.
36 |
37 | dojo.addOnUnload() : You should see an alert if the page is reloaded, or if you navigate to a
38 | different web page ("addOnUnload works").
39 |
40 | dojo.addOnWindowUnload() : You should see an alert if the page is reloaded, or if you navigate to a
41 | different web page ("addOnWindowUnload works").
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/tests/_base/loader/cdnTest.js:
--------------------------------------------------------------------------------
1 | dojo.loadInit(function(){
2 | // this function is evaluated first and only once
3 | dojoCdnTestLog.push("loadInit in cdnTest");
4 | // define a global variable
5 | dojoCdnTest= 1;
6 | });
7 |
8 | dojoCdnTestLog.push("in-dojo.tests._base.loader.cdnTest");
9 | dojo.provide("dojo.tests._base.loader.cdnTest");
10 | dojo.provide("dojo.tests._base.loader.cdnTest2");
11 | dojo.tests._base.loader.cdnTest.status= "OK";
12 | dojo.tests._base.loader.cdnTest2.status= "OK";
13 | dojo.require("dojo.tests._base.loader.syncModule");
14 | dojo.require("dojo.tests._base.loader.amdModule");
15 | dojo.requireLocalization("dojo.tests._base.loader", "syncBundle", "ab-cd-ef");
16 | dojo.requireLocalization("dojo.tests._base.loader", "amdBundle", "ab-cd-ef");
17 |
18 | (function(){
19 | var t1= dojo.i18n.getLocalization("dojo.tests._base.loader", "syncBundle");
20 | var t2= dojo.i18n.getLocalization("dojo.tests._base.loader", "syncBundle", "ab-cd-ef");
21 | var t3= dojo.i18n.getLocalization("dojo.tests._base.loader", "amdBundle");
22 | var t4= dojo.i18n.getLocalization("dojo.tests._base.loader", "amdBundle", "ab-cd-ef");
23 |
24 | require(["doh"], function(doh){
25 | doh.register("test-i18n-inline", function(t){
26 | t.is(t1.syncBundle, "syncBundle");
27 | t.is(t2.syncBundle, "syncBundle-ab-cd-ef");
28 | t.is(t3.amdBundle, "amdBundle");
29 | t.is(t4.amdBundle, "amdBundle-ab-cd-ef");
30 | });
31 | });
32 | })();
33 |
34 |
35 | dojo.requireIf(dojoCdnTest==1, "dojo.tests._base.loader.syncModule1");
36 | dojo.requireAfterIf(dojoCdnTest==1, "dojo.tests._base.loader.amdModule1");
37 | dojo.requireIf(dojoCdnTest==2, "dojo.tests._base.loader.syncModule2");
38 | dojo.requireAfterIf(dojoCdnTest==2, "dojo.tests._base.loader.amdModule2");
39 | dojoCdnTestLog.push("out-dojo.tests._base.loader.cdnTest");
40 |
--------------------------------------------------------------------------------
/cldr/nls/zh-hk/gregorian.js:
--------------------------------------------------------------------------------
1 | define(
2 | //begin v1.x content
3 | {
4 | "dateFormatItem-yM": "yyyy/M",
5 | "field-minute": "分鐘",
6 | "eraNames": [
7 | "西元前",
8 | "西元"
9 | ],
10 | "field-weekday": "週天",
11 | "dateFormatItem-MMdd": "MM/dd",
12 | "field-day-relative+-3": "大前天",
13 | "months-standAlone-narrow": [
14 | "1",
15 | "2",
16 | "3",
17 | "4",
18 | "5",
19 | "6",
20 | "7",
21 | "8",
22 | "9",
23 | "10",
24 | "11",
25 | "12"
26 | ],
27 | "dateTimeFormat-short": "{1} {0}",
28 | "field-era": "年代",
29 | "field-hour": "小時",
30 | "dateTimeFormat-medium": "{1} {0}",
31 | "quarters-standAlone-abbr": [
32 | "第1季",
33 | "第2季",
34 | "第3季",
35 | "第4季"
36 | ],
37 | "timeFormat-full": "zzzzah時mm分ss秒",
38 | "dateFormatItem-Ed": "d日(E)",
39 | "dateFormatItem-yMMM": "y年M月",
40 | "eraAbbr": [
41 | "西元前",
42 | "西元"
43 | ],
44 | "field-day-relative+2": "後天",
45 | "field-day-relative+3": "大後天",
46 | "dateFormat-long": "y年M月d日",
47 | "timeFormat-medium": "ah:mm:ss",
48 | "field-zone": "區域",
49 | "dateFormat-medium": "yyyy/M/d",
50 | "quarters-standAlone-wide": [
51 | "第1季",
52 | "第2季",
53 | "第3季",
54 | "第4季"
55 | ],
56 | "field-week": "週",
57 | "timeFormat-long": "zah時mm分ss秒",
58 | "dateFormatItem-H": "H時",
59 | "quarters-format-abbr": [
60 | "第1季",
61 | "第2季",
62 | "第3季",
63 | "第4季"
64 | ],
65 | "field-second": "秒",
66 | "dateFormatItem-MEd": "M/d(E)",
67 | "dateFormat-short": "yy/M/d",
68 | "dateFormatItem-yMMMEd": "y年M月d日EEE",
69 | "dateFormat-full": "y年M月d日EEEE",
70 | "dateFormatItem-Md": "M/d",
71 | "dateFormatItem-yMEd": "yyyy/M/d(EEE)",
72 | "quarters-format-wide": [
73 | "第1季",
74 | "第2季",
75 | "第3季",
76 | "第4季"
77 | ],
78 | "eraNarrow": [
79 | "西元前",
80 | "西元"
81 | ],
82 | "dateFormatItem-h": "ah時"
83 | }
84 | //end v1.x content
85 | );
--------------------------------------------------------------------------------
/selector/_loader.js:
--------------------------------------------------------------------------------
1 | define(["../has", "require"],
2 | function(has, require){
3 | // summary:
4 | // This module handles loading the appropriate selector engine for the given browser
5 | "use strict";
6 | var testDiv = document.createElement("div");
7 | has.add("dom-qsa2.1", !!testDiv.querySelectorAll);
8 | has.add("dom-qsa3", function(){
9 | // test to see if we have a reasonable native selector engine available
10 | try{
11 | testDiv.innerHTML = "
"; // test kind of from sizzle
12 | // Safari can't handle uppercase or unicode characters when
13 | // in quirks mode, IE8 can't handle pseudos like :empty
14 | return testDiv.querySelectorAll(".TEST:empty").length == 1;
15 | }catch(e){}
16 | });
17 | var fullEngine;
18 | var acme = "./acme", lite = "./lite";
19 | return {
20 | load: function(id, parentRequire, loaded, config){
21 | var req = require;
22 | // here we implement the default logic for choosing a selector engine
23 | id = id == "default" ? has("config-selectorEngine") || "css3" : id;
24 | id = id == "css2" || id == "lite" ? lite :
25 | id == "css2.1" ? has("dom-qsa2.1") ? lite : acme :
26 | id == "css3" ? has("dom-qsa3") ? lite : acme :
27 | id == "acme" ? acme : (req = parentRequire) && id;
28 | if(id.charAt(id.length-1) == '?'){
29 | id = id.substring(0,id.length - 1);
30 | var optionalLoad = true;
31 | }
32 | // the query engine is optional, only load it if a native one is not available or existing one has not been loaded
33 | if(optionalLoad && (has("dom-compliant-qsa") || fullEngine)){
34 | return loaded(fullEngine);
35 | }
36 | // load the referenced selector engine
37 | req([id], function(engine){
38 | if(id != "./lite"){
39 | fullEngine = engine;
40 | }
41 | loaded(engine);
42 | });
43 | }
44 | };
45 | });
46 |
--------------------------------------------------------------------------------
/tests/_base/loader/requirejs/i18n/common.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | require.js: Common I18N Test
5 |
10 |
11 |
12 |
48 |
49 |
50 | Common i18n bundle test
51 | This page tests for an i18n plugin resource that is specified by two different modules.
52 |
53 |
54 |
--------------------------------------------------------------------------------
/tests/AdapterRegistry.js:
--------------------------------------------------------------------------------
1 | define(["../main", "doh", "../AdapterRegistry"], function(dojo, doh){
2 |
3 | doh.register("tests.AdapterRegistry",
4 | [
5 | function ctor(t){
6 | var taa = new dojo.AdapterRegistry();
7 | t.is(0, taa.pairs.length);
8 | t.f(taa.returnWrappers);
9 |
10 | var taa = new dojo.AdapterRegistry(true);
11 | t.t(taa.returnWrappers);
12 | },
13 |
14 | function register(t){
15 | var taa = new dojo.AdapterRegistry();
16 | taa.register("blah",
17 | function(str){ return str == "blah"; },
18 | function(){ return "blah"; }
19 | );
20 | t.is(1, taa.pairs.length);
21 | t.is("blah", taa.pairs[0][0]);
22 |
23 | taa.register("thinger");
24 | taa.register("prepend", null, null, true, true);
25 | t.is("prepend", taa.pairs[0][0]);
26 | t.t(taa.pairs[0][3]);
27 | },
28 |
29 | /*
30 | function match(t){
31 | },
32 | */
33 |
34 | function noMatch(t){
35 | var taa = new dojo.AdapterRegistry();
36 | var threw = false;
37 | try{
38 | taa.match("blah");
39 | }catch(e){
40 | threw = true;
41 | }
42 | t.t(threw);
43 | },
44 |
45 | function returnWrappers(t){
46 | var taa = new dojo.AdapterRegistry();
47 | taa.register("blah",
48 | function(str){ return str == "blah"; },
49 | function(){ return "blah"; }
50 | );
51 | t.is("blah", taa.match("blah"));
52 |
53 | taa.returnWrappers = true;
54 | t.is("blah", taa.match("blah")());
55 | },
56 |
57 | function unregister(t){
58 | var taa = new dojo.AdapterRegistry();
59 | taa.register("blah",
60 | function(str){ return str == "blah"; },
61 | function(){ return "blah"; }
62 | );
63 | taa.register("thinger");
64 | taa.register("prepend", null, null, true, true);
65 | taa.unregister("prepend");
66 | t.is(2, taa.pairs.length);
67 | t.is("blah", taa.pairs[0][0]);
68 | }
69 | ]
70 | );
71 |
72 | });
--------------------------------------------------------------------------------
/NodeList-html.js:
--------------------------------------------------------------------------------
1 | define(["./query", "./_base/lang", "./html"], function(query, lang, html) {
2 | // module:
3 | // dojo/NodeList-html
4 | // summary:
5 | // TODOC
6 |
7 | var NodeList = query.NodeList;
8 |
9 | /*=====
10 | dojo["NodeList-html"] = {
11 | // summary: Adds a chainable html method to dojo.query() / Nodelist instances for setting/replacing node content
12 | };
13 |
14 | // doc helper aliases:
15 | NodeList = dojo.NodeList;
16 | =====*/
17 |
18 | lang.extend(NodeList, {
19 | html: function(/* String|DomNode|NodeList? */ content, /* Object? */params){
20 | // summary:
21 | // see `dojo.html.set()`. Set the content of all elements of this NodeList
22 | //
23 | // content:
24 | // An html string, node or enumerable list of nodes for insertion into the dom
25 | //
26 | // params:
27 | // Optional flags/properties to configure the content-setting. See dojo.html._ContentSetter
28 | //
29 | // description:
30 | // Based around `dojo.html.set()`, set the content of the Elements in a
31 | // NodeList to the given content (string/node/nodelist), with optional arguments
32 | // to further tune the set content behavior.
33 | //
34 | // example:
35 | // | dojo.query(".thingList").html("1 2 3 ",
36 | // | {
37 | // | parseContent: true,
38 | // | onBegin: function(){
39 | // | this.content = this.content.replace(/([0-9])/g, this.id + ": $1");
40 | // | this.inherited("onBegin", arguments);
41 | // | }
42 | // | }).removeClass("notdone").addClass("done");
43 |
44 | var dhs = new html._ContentSetter(params || {});
45 | this.forEach(function(elm){
46 | dhs.node = elm;
47 | dhs.set(content);
48 | dhs.tearDown();
49 | });
50 | return this; // dojo.NodeList
51 | }
52 | });
53 |
54 | return NodeList;
55 | });
56 |
--------------------------------------------------------------------------------