bugLibreJS - Bugs: bug #61631, Headless compliance check

 
 

bug #61631: Headless compliance check

Submitter:  Yuchen Pei <ycp>
Submitted:  Mon 06 Dec 2021 10:47:44 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  ycp
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Dec 2021 10:35:13 AM UTC, comment #1: 

An initial version of this tool was added in <https://git.savannah.gnu.org/cgit/librejs.git/commit/?id=363292644c504033b35b1dfff1342c35f17d66f4>

HEADLESS COMPLIANCE CHECK:

To check whether a webpage is LibreJS-compliant from the command line, ensure that the extension has NOT been built with automated test suite. Then install selenium-webdriver and geckodriver, and ensure the latter is in $PATH:

  $ npm install selenium-webdriver
  $ npm install geckodriver
  $ export PATH=$PATH:./node_modules/.bin

Now you can check a webpage for compliance with

  $ node ./compliance.js <url>

It will open the url in a headless browser, save a screenshot, and output the compliance check result.

For example, to check the compliance of the FSF homepage, do

  $ node ./compliance.js https://fsf.org

Yuchen Pei <ycp>
Group administrator
Mon 06 Dec 2021 10:47:44 PM UTC, original submission:  

It would be nice to check scripts and webpages for compliance from the command line.

Yuchen Pei <ycp>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ycp (Submitted the item)
  • -email is unavailable- added by ycp
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-18 ycp Open/ClosedOpen Closed
    2022-04-18 ycp StatusNone Fixed
    2021-12-06 ycp Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code