Commit fa3095d4 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml/tests: Add test for setting a prop with same name as a prototype accessor with no setter.

parent bce11840
......@@ -526,6 +526,16 @@ sync_test("defineProperty", function() {
obj.no_setter = false;
ok(obj.no_setter === true, "no_setter = " + obj.no_setter);
ok((delete obj.no_setter) === true, "delete no_setter returned false");
ok(!("no_setter" in obj), "no_setter still in obj after delete");
Object.defineProperty(child.prototype, "no_setter", desc);
test_accessor_prop_desc(child.prototype, "no_setter", desc);
ok(!obj.hasOwnProperty("no_setter"), "no_setter is a property of obj");
obj.no_setter = false;
ok(obj.no_setter === true, "no_setter = " + obj.no_setter);
ok(!obj.hasOwnProperty("no_setter"), "no_setter is a property of obj");
/* call prop with getter */
desc = {
get: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment