Bug 911864 - Add annotations to our XBL tests as-needed. r=smaug

This commit is contained in:
Bobby Holley 2013-11-01 15:31:57 +01:00
parent 8c465e2028
commit cb7b1e1b58
6 changed files with 12 additions and 9 deletions

View File

@ -8,7 +8,8 @@
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="binding">
<implementation>
<property name="prop" readonly="true" onget="return 2;"/>
<property name="prop" readonly="true" exposeToUntrustedContent="true"
onget="return 2;"/>
</implementation>
</binding>
</bindings>

View File

@ -7,7 +7,8 @@
Binding Attached
</content>
<implementation>
<property name="xblBoundProperty" onget="return 1;"/>
<property name="xblBoundProperty" onget="return 1;"
exposeToUntrustedContent="true"/>
</implementation>
</binding>
</bindings>

View File

@ -65,13 +65,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=821850
win.go();
</constructor>
<field name="primitiveField">2</field>
<method name="method">
<method name="method" exposeToUntrustedContent="true">
<parameter name="arg" />
<body>
return "method:" + arg;
</body>
</method>
<method name="passMeAJSObject">
<method name="passMeAJSObject" exposeToUntrustedContent="true">
<parameter name="arg" />
<body>
is(typeof arg.prop, 'undefined', "No properties");
@ -85,7 +85,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=821850
is(typeof arg.foo, 'undefined', "Shouldn't place props");
</body>
</method>
<property name="prop">
<property name="prop" exposeToUntrustedContent="true">
<getter>return this._prop;</getter>
<setter>this._prop = "set:" + val;</setter>
</property>

View File

@ -9,7 +9,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=371724
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="rd">
<implementation>
<property name="hallo" onget="return true;" readonly="true"/>
<property name="hallo" onget="return true;" readonly="true" exposeToUntrustedContent="true"/>
</implementation>
</binding>
</bindings>

View File

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=790265
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="binding">
<implementation>
<method name="foo">
<method name="foo" exposeToUntrustedContent="true">
<body><![CDATA[
return this;
]]></body>

View File

@ -3,13 +3,14 @@
xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="xbltest">
<implementation>
<method name="testMethod">
<method name="testMethod" exposeToUntrustedContent="true">
<body>
Components.interfaces;
</body>
</method>
<property name="testProp" readonly="true"
onget="Components; return 3;" />
onget="Components; return 3;"
exposeToUntrustedContent="true" />
<constructor>
var foo = Components;
</constructor>