html

changeset 546:f06e5627c826

Update idlharness.js for bug 14887 resolution
author Aryeh Gregor <ayg+w3chg@aryeh.name>
date Tue, 27 Dec 2011 07:39:22 -0700
parents d82d1d0fb1de
children bc2ebfd2fca2
files tests/resources/idlharness.js
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/tests/resources/idlharness.js	Tue Dec 27 12:08:45 2011 +0100
     1.2 +++ b/tests/resources/idlharness.js	Tue Dec 27 07:39:22 2011 -0700
     1.3 @@ -518,10 +518,9 @@
     1.4          //"Otherwise, the exception is not declared to inherit from another
     1.5          //exception. The value of the internal [[Prototype]] property is the
     1.6          //Error prototype object ([ECMA-262], section 15.11.3.1)."
     1.7 -        //TODO: Implementations inherit from Object, not Error.  I test for how
     1.8 -        //browsers behave, assuming the spec will change.
     1.9 -        //http://www.w3.org/Bugs/Public/show_bug.cgi?id=14887
    1.10 -        var inherit_exception = this.inheritance.length ? this.inheritance[0] : "Object";
    1.11 +        //Note: This doesn't match browsers as of December 2011, see
    1.12 +        //https://www.w3.org/Bugs/Public/show_bug.cgi?id=14887.
    1.13 +        var inherit_exception = this.inheritance.length ? this.inheritance[0] : "Error";
    1.14          assert_own_property(window, inherit_exception,
    1.15                              'should inherit from ' + inherit_exception + ', but window has no such property');
    1.16          assert_own_property(window[inherit_exception], "prototype",
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.