Bug 1498660 [wpt PR 13486] - IdlHarness: Improve the error message for alias values., a=testonly
☠☠ backed out by 09dd66ffc95a ☠ ☠
authorMs2ger <Ms2ger@gmail.com>
Tue, 16 Oct 2018 09:58:19 +0000
changeset 489911 59de0505cfcac42bea2b8c80d2b486438227912c
parent 489910 951ff6470f1fdb8384faf6cedd4350dac9002f23
child 489912 5802a4b6556272d1656ccbd88bcf06c0998fa965
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstestonly
bugs1498660, 13486
milestone64.0a1
Bug 1498660 [wpt PR 13486] - IdlHarness: Improve the error message for alias values., a=testonly Automatic update from web-platform-testsIdlHarness: Improve the error message for alias values. (#13486) -- wpt-commits: fa1bd84e90bc1ee11d608ff867b9b7ce923ddb87 wpt-pr: 13486
testing/web-platform/tests/resources/idlharness.js
--- a/testing/web-platform/tests/resources/idlharness.js
+++ b/testing/web-platform/tests/resources/idlharness.js
@@ -1638,17 +1638,17 @@ IdlInterface.prototype.test_self = funct
                 aliases = [ rhs.value ];
             }
 
             // OK now actually check the aliases...
             var alias;
             if (exposed_in(exposure_set(this, this.exposureSet)) && 'document' in self) {
                 for (alias of aliases) {
                     assert_true(alias in self, alias + " should exist");
-                    assert_equals(self[alias], this.get_interface_object(), "self." + alias + " should be the same value as the interface object");
+                    assert_equals(self[alias], this.get_interface_object(), "self." + alias + " should be the same value as self." + this.get_qualified_name());
                     var desc = Object.getOwnPropertyDescriptor(self, alias);
                     assert_equals(desc.value, this.get_interface_object(), "wrong value in " + alias + " property descriptor");
                     assert_true(desc.writable, alias + " should be writable");
                     assert_false(desc.enumerable, alias + " should not be enumerable");
                     assert_true(desc.configurable, alias + " should be configurable");
                     assert_false('get' in desc, alias + " should not have a getter");
                     assert_false('set' in desc, alias + " should not have a setter");
                 }