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

Unified Diff: test/intl/number-format/parse-currency.js

Issue 18687003: Import intl test suite from v8-i18n project (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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: test/intl/number-format/parse-currency.js
diff --git a/test/mjsunit/compiler/osr-two.js b/test/intl/number-format/parse-currency.js
similarity index 86%
copy from test/mjsunit/compiler/osr-two.js
copy to test/intl/number-format/parse-currency.js
index 8ac4c2cc128180ea6843c7c07591b1365f3b37f7..892eca96941d74d2b8ea351ab49b99c188d46357 100644
--- a/test/mjsunit/compiler/osr-two.js
+++ b/test/intl/number-format/parse-currency.js
@@ -24,21 +24,11 @@
// 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.
-// Flags: --use-osr
+// Currency parsing is not yet supported. We need ICU49 or higher to get
+// it working.
-function f(x) {
- var sum = 0;
- var outer = 100;
- while (outer > 0) {
- var inner = 100000;
- while (inner > 0) {
- sum += x;
- inner--;
- }
- outer--;
- }
- return sum;
-}
+var nf = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'});
-assertEquals(50000000, f(5));
+assertEquals(undefined, nf.v8Parse('USD 123.43'));

Powered by Google App Engine
This is Rietveld 408576698