Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: test/intl/general/v8Intl-exists.js

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/intl/date-format/wellformed-unsupported-locale.js ('k') | test/intl/intl.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'));
« no previous file with comments | « test/intl/date-format/wellformed-unsupported-locale.js ('k') | test/intl/intl.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698