8005982: NASHORN-71.js failing in nightlys

Thu, 10 Jan 2013 19:55:38 +0530

author
sundar
date
Thu, 10 Jan 2013 19:55:38 +0530
changeset 22
0362d36d3dd6
parent 21
a7f177d6639c
child 23
2a5c2258827b

8005982: NASHORN-71.js failing in nightlys
Reviewed-by: attila, lagergren, jlaskey

test/script/basic/NASHORN-71.js file | annotate | diff | comparison | revisions
test/script/basic/NASHORN-71.js.EXPECTED file | annotate | diff | comparison | revisions
     1.1 --- a/test/script/basic/NASHORN-71.js	Thu Jan 10 19:03:25 2013 +0530
     1.2 +++ b/test/script/basic/NASHORN-71.js	Thu Jan 10 19:55:38 2013 +0530
     1.3 @@ -22,12 +22,20 @@
     1.4   */
     1.5  
     1.6  /**
     1.7 - * NASHORN-71 :  Global functions decodeURI, decodeURICompondet are not implemdeted.
     1.8 + * NASHORN-71 :  Global functions decodeURI, decodeURICompondet are not implemented.
     1.9   *
    1.10   * @test
    1.11   * @run
    1.12   */
    1.13  
    1.14 -print(decodeURI("It's%20me!!"));
    1.15 -print(decodeURI("http://en.wikipedia.org/wiki/%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B5%D0%B9"));
    1.16 -print(decodeURIComponent("Sk%C3%A5l"));
    1.17 +if (decodeURI("It's%20me!!") != "It's me!!") {
    1.18 +    fail("#1 decodeURI failed");
    1.19 +}
    1.20 +
    1.21 +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") {
    1.22 +    fail("#2 decodeURI failed");
    1.23 +}
    1.24 +
    1.25 +if (decodeURIComponent("Sk%C3%A5l") != "Sk\u00E5l") {
    1.26 +    fail("decodeURIComponent failed");
    1.27 +}
     2.1 --- a/test/script/basic/NASHORN-71.js.EXPECTED	Thu Jan 10 19:03:25 2013 +0530
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,3 +0,0 @@
     2.4 -It's me!!
     2.5 -http://en.wikipedia.org/wiki/Алексей
     2.6 -Skål

mercurial