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

Unified Diff: src/extensions/i18n/footer.js

Issue 148503002: A64: Synchronize with r15545. (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 | « src/extensions/i18n/date-format.js ('k') | src/extensions/i18n/globals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/i18n/footer.js
diff --git a/test/cctest/test-platform.cc b/src/extensions/i18n/footer.js
similarity index 79%
copy from test/cctest/test-platform.cc
copy to src/extensions/i18n/footer.js
index 6c20b853c5e7408b1877ee74617c01c3fc32ed5f..ac33f1e24224957ff05d2cddef072987dd96942d 100644
--- a/test/cctest/test-platform.cc
+++ b/src/extensions/i18n/footer.js
@@ -24,14 +24,17 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// limitations under the License.
-#include <stdlib.h>
+// ECMAScript 402 API implementation is broken into separate files for
+// each service. The build system combines them together into one
+// Intl namespace.
-#include "cctest.h"
-#include "platform.h"
+// Fix RegExp global state so we don't fail WebKit layout test:
+// fast/js/regexp-caching.html
+// It seems that 'g' or test() operations leave state changed.
+var CLEANUP_RE = new RegExp('');
+CLEANUP_RE.test('');
-using namespace ::v8::internal;
-
-TEST(NumberOfCores) {
- CHECK_GT(OS::NumberOfCores(), 0);
-}
+return Intl;
+}());
« no previous file with comments | « src/extensions/i18n/date-format.js ('k') | src/extensions/i18n/globals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698