QA/IntersectionObserver: Difference between revisions

Fixed typos and added more test sites
(Added first test scenarios)
(Fixed typos and added more test sites)
Line 52: Line 52:


=== Nightly ===
=== Nightly ===
<div class="mw-collapsible-content">
dom.IntersectionObserver.enabled needs to be set to "true" in about:config <br />
dom.IntersectionObserver.enabled needs to be set to "true" in about:config <br />
If any kind of Ad-blocker is installed/in use it needs to be uninstalled/disabled
If any kind of Ad-blocker is installed/in use it needs to be uninstalled/disabled
</div>


= Test Strategy =  
= Test Strategy =  
Line 144: Line 142:
= Testcases =
= Testcases =
== Overview ==
== Overview ==
Testing should happen on Ad-intensive websites. In general news sites tend to be rich of Ads. Therefore the top news sites on Alexa are a great source for suitable websites.
Testing should happen on Ad-intensive websites. In general news sites tent to be rich of Ads. Therefore the top news sites on Alexa are a great source for suitable websites.


[http://www.alexa.com/topsites/category/Top/News] The top 500 news sites on the web
[http://www.alexa.com/topsites/category/Top/News] The top 500 news sites on the web
List of known sites using the Intersection Observer API:
* https://soundcloud.com/charts/top
* http://news.yahoo.co.jp
* http://www.iza.ne.jp/kiji/entertainments/newslist/entertainments-n1.html
* http://www.bbc.com/sport/all-sports
* http://money.cnn.com/video/media/2016/10/13/rogue-one-trailer-good-morning-america.cnnmoney?iid=EL
* http://money.cnn.com/2016/11/25/media/rogue-one-tickets/
* http://abc7news.com/pets/hillsborough-mountain-lion-goes-viral/1658809/


Possible test scenarios:
Possible test scenarios:


* Open a single news site. Wait till its fully loaded to make sure all Ads are initialized. If there is content to scroll, scroll up and down a couple of times. Click on some articles to trigger a refresh.
* Open a single news site. Wait till it is fully loaded to make sure all Ads are properly initialized. If there is content to scroll, scroll up and down a couple of times. Click on some articles to trigger a refresh.


* Open a multiple news sites in different taps. Wait till every page is fully loaded to make sure all Ads are initialized. Switch between tabs from time too time. Close and open new tabs randomly. If there is content to scroll, scroll up and down a couple of times. Click on some articles to trigger a refresh.
* Open a multiple news sites in different tabs. Wait till every page is fully loaded to make sure all Ads are properly initialized. Switch between tabs from time too time. Close and open new tabs randomly. If there is content to scroll, scroll up and down a couple of times. Click on some articles to trigger a refresh.


* Repeat scenarios above but let the browser untouched for a longer period of time. Then proceed.
* Repeat scenarios above but let the browser untouched for a longer period of time. Then proceed.
31

edits