changeset 16166:b30784442c47

8005982: NASHORN-71.js failing in nightlys Reviewed-by: attila, lagergren, jlaskey
author sundar
date Thu, 10 Jan 2013 19:55:38 +0530
parents 4391faad6957
children d99db3541813
files nashorn/test/script/basic/NASHORN-71.js nashorn/test/script/basic/NASHORN-71.js.EXPECTED
diffstat 2 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/nashorn/test/script/basic/NASHORN-71.js	Thu Jan 10 19:03:25 2013 +0530
+++ b/nashorn/test/script/basic/NASHORN-71.js	Thu Jan 10 19:55:38 2013 +0530
@@ -22,12 +22,20 @@
  */
 
 /**
- * NASHORN-71 :  Global functions decodeURI, decodeURICompondet are not implemdeted.
+ * NASHORN-71 :  Global functions decodeURI, decodeURICompondet are not implemented.
  *
  * @test
  * @run
  */
 
-print(decodeURI("It's%20me!!"));
-print(decodeURI("http://en.wikipedia.org/wiki/%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B5%D0%B9"));
-print(decodeURIComponent("Sk%C3%A5l"));
+if (decodeURI("It's%20me!!") != "It's me!!") {
+    fail("#1 decodeURI failed");
+}
+
+if (decodeURI("http://en.wikipedia.org/wiki/%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B5%D0%B9") != "http://en.wikipedia.org/wiki/\u0410\u043B\u0435\u043A\u0441\u0435\u0439") {
+    fail("#2 decodeURI failed");
+}
+
+if (decodeURIComponent("Sk%C3%A5l") != "Sk\u00E5l") {
+    fail("decodeURIComponent failed");
+}
--- a/nashorn/test/script/basic/NASHORN-71.js.EXPECTED	Thu Jan 10 19:03:25 2013 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-It's me!!
-http://en.wikipedia.org/wiki/Алексей
-Skål