Revision: 15479
Author: [email protected]
Date: Wed Jul 3 08:33:11 2013
Log: Change mjsunit tests to work with and without the i18n extension
BUG=v8:2745
[email protected]
Review URL: https://codereview.chromium.org/18187006
Patch from Jochen Eisinger <[email protected]>.
http://code.google.com/p/v8/source/detail?r=15479
Modified:
/branches/bleeding_edge/test/mjsunit/date.js
/branches/bleeding_edge/test/mjsunit/debug-script.js
/branches/bleeding_edge/test/mjsunit/function-call.js
=======================================
--- /branches/bleeding_edge/test/mjsunit/date.js Mon Sep 10 01:35:26 2012
+++ /branches/bleeding_edge/test/mjsunit/date.js Wed Jul 3 08:33:11 2013
@@ -150,7 +150,7 @@
// date without the timezone information.
function testToLocaleTimeString() {
var d = new Date();
- var s = d.toLocaleTimeString();
+ var s = d.toLocaleTimeString("en-GB");
assertEquals(8, s.length);
}
=======================================
--- /branches/bleeding_edge/test/mjsunit/debug-script.js Mon May 13
07:18:43 2013
+++ /branches/bleeding_edge/test/mjsunit/debug-script.js Wed Jul 3
08:33:11 2013
@@ -61,9 +61,8 @@
// This has to be updated if the number of native scripts change.
assertEquals(16, named_native_count);
-// If no snapshot is used, only the 'gc' extension is loaded.
-// If snapshot is used, all extensions are cached in the snapshot.
-assertTrue(extension_count == 1 || extension_count == 5);
+// Only the 'gc' and (depending on flags) the 'i18n' extensions are loaded.
+assertTrue(extension_count == 1 || extension_count == 2);
// This script and mjsunit.js has been loaded. If using d8, d8 loads
// a normal script during startup too.
assertTrue(normal_count == 2 || normal_count == 3);
=======================================
--- /branches/bleeding_edge/test/mjsunit/function-call.js Fri Dec 7
02:20:35 2012
+++ /branches/bleeding_edge/test/mjsunit/function-call.js Wed Jul 3
08:33:11 2013
@@ -151,6 +151,7 @@
function checkExpectedMessage(e) {
assertTrue(e.message.indexOf("called on null or undefined") >= 0 ||
+ e.message.indexOf("invoked on undefined or null value") >= 0 |
|
e.message.indexOf("Cannot convert null to object") >= 0);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.