html

changeset 548:34d6cfb3b3be

Update idlharness.js for bug 14813 resolution
author Aryeh Gregor <ayg+w3chg@aryeh.name>
date Tue, 27 Dec 2011 08:31:01 -0700
parents bc2ebfd2fca2
children 2aea8b3414c7
files tests/resources/idlharness.js
diffstat 1 files changed, 6 insertions(+), 10 deletions(-) [+]
line diff
     1.1 --- a/tests/resources/idlharness.js	Tue Dec 27 07:46:06 2011 -0700
     1.2 +++ b/tests/resources/idlharness.js	Tue Dec 27 08:31:01 2011 -0700
     1.3 @@ -471,12 +471,10 @@
     1.4          //characteristics as follows:"
     1.5          //"Its [[Prototype]] internal property is the Function prototype
     1.6          //object."
     1.7 -        //FIXME: The spec is wrong, has to be Object.prototype and not
     1.8 -        //Function.prototype.  I test for how browsers actually behave,
     1.9 -        //assuming the bug will be fixed:
    1.10 +        //Note: This doesn't match browsers as of December 2011, see
    1.11          //http://www.w3.org/Bugs/Public/show_bug.cgi?id=14813
    1.12 -        assert_true(Object.prototype.isPrototypeOf(window[this.name]),
    1.13 -                    "prototype of window's property " + format_value(this.name) + " is not Object.prototype");
    1.14 +        assert_true(Function.prototype.isPrototypeOf(window[this.name]),
    1.15 +                    "prototype of window's property " + format_value(this.name) + " is not Function.prototype");
    1.16          //"Its [[Get]] internal property is set as described in ECMA-262
    1.17          //section 15.3.5.4."
    1.18          //Not much to test for this.
    1.19 @@ -813,12 +811,10 @@
    1.20          //characteristics as follows:"
    1.21          //"Its [[Prototype]] internal property is the Function prototype
    1.22          //object."
    1.23 -        //FIXME: The spec is wrong, has to be Object.prototype and not
    1.24 -        //Function.prototype.  I test for how browsers actually behave,
    1.25 -        //assuming the bug will be fixed:
    1.26 +        //Note: This doesn't match browsers as of December 2011, see
    1.27          //http://www.w3.org/Bugs/Public/show_bug.cgi?id=14813
    1.28 -        assert_true(Object.prototype.isPrototypeOf(window[this.name]),
    1.29 -                    "prototype of window's property " + format_value(this.name) + " is not Object.prototype");
    1.30 +        assert_true(Function.prototype.isPrototypeOf(window[this.name]),
    1.31 +                    "prototype of window's property " + format_value(this.name) + " is not Function.prototype");
    1.32          //"Its [[Get]] internal property is set as described in ECMA-262
    1.33          //section 15.3.5.4."
    1.34          //Not much to test for this.
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.