8005982: NASHORN-71.js failing in nightlys
authorsundar
Thu, 10 Jan 2013 19:55:38 +0530
changeset 16166 b30784442c47
parent 16165 4391faad6957
child 16167 d99db3541813
8005982: NASHORN-71.js failing in nightlys Reviewed-by: attila, lagergren, jlaskey
nashorn/test/script/basic/NASHORN-71.js
nashorn/test/script/basic/NASHORN-71.js.EXPECTED
--- 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