Fix a bug in interface flattening when an attribute was set before one
on the same interface was fetched. Added test for this case too. Not part of the build. git-svn-id: svn://10.0.0.236/trunk@101412 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -380,6 +380,12 @@ def test_all():
|
||||
c = xpcom.components.classes[contractid].createInstance()
|
||||
test_base_interface(c)
|
||||
test_derived_interface(c, test_flat=1)
|
||||
|
||||
# We had a bug where a "set" of an attribute before a "get" failed.
|
||||
# Don't let it happen again :)
|
||||
c = xpcom.components.classes[contractid].createInstance()
|
||||
c.boolean_value = 0
|
||||
|
||||
# This name is used in exceptions etc - make sure we got it from nsIClassInfo OK.
|
||||
assert c._object_name_ == "Python.TestComponent"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user