| Index: test/browser/snippets.js |
| =================================================================== |
| --- a/test/browser/snippets.js |
| +++ b/test/browser/snippets.js |
| @@ -104,16 +104,21 @@ |
| testProperty("abpTest5.prop4.bar", true, "TypeError"); |
| window.abpTest5 = {prop4: 42}; |
| testProperty("abpTest5.prop4.bar", false); |
| window.abpTest5 = {prop4: {}}; |
| testProperty("abpTest5.prop4.bar"); |
| + // Check that it works on properties that are functions. |
| + // https://issues.adblockplus.org/ticket/7419 |
| + await runSnippet(test, "abort-on-property-read", "Object.keys"); |
|
Manish Jethani
2019/03/29 07:08:07
In the interest of completeness we could add the f
hub
2019/03/29 14:36:27
for the record, test 8 and 9 already pass. But tha
Manish Jethani
2019/03/29 15:46:27
The reason I thought we should add these tests is
hub
2019/03/29 15:58:02
I was not arguing against. I was just indicating t
Manish Jethani
2019/03/29 15:59:09
Acknowledged.
|
| + testProperty("Object.keys"); |
| + |
| test.done(); |
| }; |
| exports.testAbortCurrentInlineScriptSnippet = async function(test) |
| { |
| function injectInlineScript(doc, script) |
| { |
| let scriptElement = doc.createElement("script"); |