Index: test/intl/general/v8Intl-exists.js |
diff --git a/src/extensions/i18n/header.js b/test/intl/general/v8Intl-exists.js |
similarity index 83% |
copy from src/extensions/i18n/header.js |
copy to test/intl/general/v8Intl-exists.js |
index 1c0a2d8874b5aa982ca2be2fb39f2ead1c4a9622..266a25d11e6c4db3748aba568d753134ea167153 100644 |
--- a/src/extensions/i18n/header.js |
+++ b/test/intl/general/v8Intl-exists.js |
@@ -26,16 +26,12 @@ |
// 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. |
+// Make sure that v8Intl is mapped into Intl for backward compatibility. |
-/** |
- * Intl object is a single object that has some named properties, |
- * all of which are constructors. |
- */ |
-var Intl = (function() { |
+assertEquals(v8Intl, Intl); |
-'use strict'; |
- |
-var Intl = {}; |
+// Extra checks. |
+assertTrue(v8Intl.hasOwnProperty('DateTimeFormat')); |
+assertTrue(v8Intl.hasOwnProperty('NumberFormat')); |
+assertTrue(v8Intl.hasOwnProperty('Collator')); |
+assertTrue(v8Intl.hasOwnProperty('v8BreakIterator')); |