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

Unified Diff: test/intl/general/supported-locales-of.js

Issue 148883002: Synchronize with r15594. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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/general/mapped-locale.js ('k') | test/intl/general/v8Intl-exists.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/intl/general/supported-locales-of.js
diff --git a/src/a64/frames-a64.cc b/test/intl/general/supported-locales-of.js
similarity index 75%
copy from src/a64/frames-a64.cc
copy to test/intl/general/supported-locales-of.js
index fc0ecb499594f06731abe87b29ab6df7f7f82ca0..016b4e9e5dddae6320fb01be7a77aa38a72c0edc 100644
--- a/src/a64/frames-a64.cc
+++ b/test/intl/general/supported-locales-of.js
@@ -25,27 +25,19 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include "v8.h"
+// Tests supportedLocalesOf method.
-#if V8_TARGET_ARCH_A64
+var undef = Intl.DateTimeFormat.supportedLocalesOf();
+assertEquals(undefined, undef[0]);
-#include "assembler.h"
-#include "assembler-a64.h"
-#include "assembler-a64-inl.h"
-#include "frames.h"
+var empty = Intl.DateTimeFormat.supportedLocalesOf([]);
+assertEquals(undefined, empty[0]);
-namespace v8 {
-namespace internal {
+var strLocale = Intl.DateTimeFormat.supportedLocalesOf('sr');
+assertEquals('sr', strLocale[0]);
-
-Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
-Register JavaScriptFrame::context_register() { return cp; }
-
-
-Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
-Register StubFailureTrampolineFrame::context_register() { return cp; }
-
-
-} } // namespace v8::internal
-
-#endif // V8_TARGET_ARCH_A64
+var multiLocale =
+ Intl.DateTimeFormat.supportedLocalesOf(['sr-Thai-RS', 'de', 'zh-CN']);
+assertEquals('sr-Thai-RS', multiLocale[0]);
+assertEquals('de', multiLocale[1]);
+assertEquals('zh-CN', multiLocale[2]);
« no previous file with comments | « test/intl/general/mapped-locale.js ('k') | test/intl/general/v8Intl-exists.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698