Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/browser/snippets.js

Issue 30033574: Issue 7419 - Allow wrapping function for abort-on-property-* (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created March 28, 2019, 8:39 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/content/snippets.js ('K') | « lib/content/snippets.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« lib/content/snippets.js ('K') | « lib/content/snippets.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld