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

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

Issue 18487004: Import the v8-i18n extension into v8 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
Index: src/extensions/i18n/header.js
diff --git a/test/cctest/test-platform.cc b/src/extensions/i18n/header.js
similarity index 81%
copy from test/cctest/test-platform.cc
copy to src/extensions/i18n/header.js
index 6c20b853c5e7408b1877ee74617c01c3fc32ed5f..1c0a2d8874b5aa982ca2be2fb39f2ead1c4a9622 100644
--- a/test/cctest/test-platform.cc
+++ b/src/extensions/i18n/header.js
@@ -24,14 +24,18 @@
// 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"
+/**
+ * Intl object is a single object that has some named properties,
+ * all of which are constructors.
+ */
+var Intl = (function() {
-using namespace ::v8::internal;
+'use strict';
-TEST(NumberOfCores) {
- CHECK_GT(OS::NumberOfCores(), 0);
-}
+var Intl = {};

Powered by Google App Engine
This is Rietveld 408576698