diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-08-26 00:56:08 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-08-26 00:56:08 +0200 |
commit | 60f0f8eaa55ab1c80f3c78bc2d4019dfdd1acc2f (patch) | |
tree | 5007843e6f94b462cea0ab9506d1ea651e15cf81 /components/script/dom/bindings/codegen/parser/tests | |
parent | 7ac24643023388a670e8f5c050f7d7a91f51920c (diff) | |
download | servo-60f0f8eaa55ab1c80f3c78bc2d4019dfdd1acc2f.tar.gz servo-60f0f8eaa55ab1c80f3c78bc2d4019dfdd1acc2f.zip |
Update the WebIDL parser
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/tests')
-rw-r--r-- | components/script/dom/bindings/codegen/parser/tests/test_securecontext_extended_attribute.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/parser/tests/test_securecontext_extended_attribute.py b/components/script/dom/bindings/codegen/parser/tests/test_securecontext_extended_attribute.py index d907d08449f..084f19fa7f5 100644 --- a/components/script/dom/bindings/codegen/parser/tests/test_securecontext_extended_attribute.py +++ b/components/script/dom/bindings/codegen/parser/tests/test_securecontext_extended_attribute.py @@ -316,3 +316,17 @@ def WebIDLTest(parser, harness): harness.ok(results[0].members[3].getExtendedAttribute("SecureContext") is None, "Methods copied from non-[SecureContext] interface should not be [SecureContext]") + # Test SecureContext and NoInterfaceObject + parser = parser.reset() + parser.parse(""" + [NoInterfaceObject, SecureContext] + interface TestSecureContextNoInterfaceObject { + void testSecureMethod(byte foo); + }; + """) + results = parser.finish() + harness.check(len(results[0].members), 1, "TestSecureContextNoInterfaceObject should have only one member") + harness.ok(results[0].getExtendedAttribute("SecureContext"), + "Interface should have [SecureContext] extended attribute") + harness.ok(results[0].members[0].getExtendedAttribute("SecureContext"), + "Interface member should have [SecureContext] extended attribute") |