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

Unified Diff: test/intl/general/v8Intl-exists.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/supported-locales-of.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/test/mjsunit/compiler/osr-nested.js b/test/intl/general/v8Intl-exists.js
similarity index 83%
copy from test/mjsunit/compiler/osr-nested.js
copy to test/intl/general/v8Intl-exists.js
index 4bdb0828ca2272332701c579bcbf9952cf43e6a4..610767e3769d8d8e4bd9dae0d9d696a60a4053a4 100644
--- a/test/mjsunit/compiler/osr-nested.js
+++ b/test/intl/general/v8Intl-exists.js
@@ -25,22 +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.
-// Flags: --use-osr
+// Make sure that v8Intl is mapped into Intl for backward compatibility.
-function f() {
- var sum = 0;
- for (var i = 0; i < 10; i++) {
- for (var j = 0; j < 100000; j++) {
- var x = i + 2;
- var y = x + 5;
- var z = y + 3;
- sum += z;
- }
- }
- return sum;
-}
+assertEquals(v8Intl, Intl);
-
-assertEquals(14500000, f());
-assertEquals(14500000, f());
-assertEquals(14500000, f());
+// 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/general/supported-locales-of.js ('k') | test/intl/intl.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698