Changeset 8038
- Timestamp:
- 04/10/07 18:18:32 (21 months ago)
- Location:
- dojo/trunk
- Files:
-
- 2 added
- 3 modified
-
currency.js (modified) (1 diff)
-
string.js (modified) (2 diffs)
-
tests/currency.js (added)
-
tests/number.js (added)
-
tests/_base.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/currency.js
r8028 r8038 16 16 var iso = options.currency; 17 17 var data = dojo.cldr.monetary.getData(iso); 18 dojo. lang.mixin(data, bundle[iso] || {});18 dojo.mixin(data, bundle[iso] || {}); 19 19 20 20 // Mixin with provided options 21 return dojo. lang.mixin(data, options);21 return dojo.mixin(data, options); 22 22 } 23 23 -
dojo/trunk/string.js
r8028 r8038 1 1 dojo.provide("dojo.string"); 2 2 3 dojo.string.pad = function(/*String*/text, /*int*/size, /*String?*/ch, /*boolean?*/end) {3 dojo.string.pad = function(/*String*/text, /*int*/size, /*String?*/ch, /*boolean?*/end){ 4 4 // summary: 5 5 // Pad a string to guarantee that it is at least 'size' length by filling with the character 'c' at either the … … 11 11 12 12 var out = String(text); 13 if(!ch) {13 if(!ch){ 14 14 ch = '0'; 15 15 } 16 while(out.length < size) { 17 if(!dir) { 16 while(out.length < size){ 17 if(end){ 18 out += ch; 19 }else{ 18 20 out = ch + out; 19 } else {20 out += ch;21 21 } 22 22 } -
dojo/trunk/tests/_base.js
r8029 r8038 122 122 dojo.require("tests._base.Deferred"); 123 123 dojo.require("tests._base.json"); 124 dojo.require("tests._base.xhr");125 124 // FIXME: add test includes for the rest of the Dojo Base groups here 126 dojo.require("tests.i18n"); //FIXME does not belong here in _base127 dojo.require("tests.data"); //FIXME does not belong here in _base128 125 dojo.requireIf(dojo.isBrowser, "tests._base.html"); 129 126 dojo.requireIf(dojo.isBrowser, "tests._base.fx"); 130 127 dojo.requireIf(dojo.isBrowser, "tests._base.query"); 131 128 dojo.requireIf(dojo.isBrowser, "tests._base.xhr"); 129 130 //FIXME the following do not belong here in _base.js - create a separate module? 131 dojo.require("tests.i18n"); 132 dojo.require("tests.data"); 133 dojo.require("tests.number"); 134 dojo.require("tests.currency"); 132 135 }catch(e){ 133 136 tests.debug(e);