Index: test/intl/collator/en-sort.js |
diff --git a/src/extensions/i18n/header.js b/test/intl/collator/en-sort.js |
similarity index 82% |
copy from src/extensions/i18n/header.js |
copy to test/intl/collator/en-sort.js |
index 1c0a2d8874b5aa982ca2be2fb39f2ead1c4a9622..0385d412dd4ab60b46da03b82cc1874294df0139 100644 |
--- a/src/extensions/i18n/header.js |
+++ b/test/intl/collator/en-sort.js |
@@ -26,16 +26,15 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// limitations under the License. |
-// ECMAScript 402 API implementation is broken into separate files for |
-// each service. The build system combines them together into one |
-// Intl namespace. |
+// Sort plain English text using defaults. |
-/** |
- * Intl object is a single object that has some named properties, |
- * all of which are constructors. |
- */ |
-var Intl = (function() { |
+var strings = ['blood', 'bull', 'ascend', 'zed', 'down']; |
-'use strict'; |
+var collator = Intl.Collator(['en']); |
+var result = strings.sort(collator.compare); |
-var Intl = {}; |
+assertEquals('ascend', result[0]); |
+assertEquals('blood', result[1]); |
+assertEquals('bull', result[2]); |
+assertEquals('down', result[3]); |
+assertEquals('zed', result[4]); |