Index: test/intl/general/v8Intl-exists.js |
diff --git a/src/icu_util.h b/test/intl/general/v8Intl-exists.js |
similarity index 83% |
copy from src/icu_util.h |
copy to test/intl/general/v8Intl-exists.js |
index 478abce508cc69a74b83028e19ddc66f9ea1d641..610767e3769d8d8e4bd9dae0d9d696a60a4053a4 100644 |
--- a/src/icu_util.h |
+++ b/test/intl/general/v8Intl-exists.js |
@@ -25,18 +25,12 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// Make sure that v8Intl is mapped into Intl for backward compatibility. |
-#ifndef V8_ICU_UTIL_H_ |
-#define V8_ICU_UTIL_H_ |
+assertEquals(v8Intl, Intl); |
-namespace v8 { |
- |
-namespace internal { |
- |
-// Call this function to load ICU's data tables for the current process. This |
-// function should be called before ICU is used. |
-bool InitializeICU(); |
- |
-} } // namespace v8::internal |
- |
-#endif // V8_ICU_UTIL_H_ |
+// Extra checks. |
+assertTrue(v8Intl.hasOwnProperty('DateTimeFormat')); |
+assertTrue(v8Intl.hasOwnProperty('NumberFormat')); |
+assertTrue(v8Intl.hasOwnProperty('Collator')); |
+assertTrue(v8Intl.hasOwnProperty('v8BreakIterator')); |