Changes between Initial Version and Version 3 of Ticket #7074


Ignore:
Timestamp:
10/29/2018 03:44:50 PM (17 months ago)
Author:
mjethani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7074

    • Property Summary changed from Save filter objects directly in ElemHideEmulation and Snippets modules to Keep filter objects in ElemHideEmulation and Snippets modules
  • Ticket #7074 – Description

    initial v3  
    44=== What to change === 
    55In `lib/elemHideEmulation.js` and `lib/snippets.js`, save filter objects directly instead of saving just the filter text. 
     6 
     7=== Hints for testers === 
     8Test that element hiding emulation and snippet filters work correctly. 
     9 
     10Here's a test document: 
     11 
     12{{{ 
     13<!DOCTYPE html> 
     14<div id="ad">This is an ad.</div> 
     15}}} 
     16 
     17The filter `localhost#?#div:-abp-contains(This is an ad)` should hide the ad. Once the filter is removed and the page is refreshed, the ad should no longer be hidden. Similarly, the filter `localhost#$#log 'Hello snippets'` should print out `Hello snippets` to the console. Once the filter is removed and the page is refreshed, `Hello snippets` should not appear in the console.