[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #61631] Headless compliance check
From: |
Yuchen Pei |
Subject: |
Re: [bug #61631] Headless compliance check |
Date: |
Mon, 13 Dec 2021 16:09:08 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
On Wed, Dec 08 2021, Yuchen Pei wrote:
> Follow-up Comment #1, bug #61631 (project librejs):
>
> 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
>
I think the (pointer to the) instructions will be useful to include in
free-your-javascript.html to help people write compliant webpages, hence
the patch, which I plan to install in a few days:
Index: free-your-javascript.html
===================================================================
RCS file: /web/librejs/librejs/free-your-javascript.html,v
retrieving revision 1.124
diff -u -r1.124 free-your-javascript.html
--- free-your-javascript.html 29 Aug 2018 13:46:21 -0000 1.124
+++ free-your-javascript.html 13 Dec 2021 05:03:04 -0000
@@ -565,6 +565,10 @@
on how to do this.</p>
</div>
+<h2>Step 4: Testing</h2>
+
+<p>To test the LibreJS-compliance of your webpage, apart from observing the
LibreJS icon and its popup frame in the browser, you may do so from the command
line, see the section titled "HEADLESS COMPLIANCE CHECK" in the <a
href="https://git.savannah.gnu.org/cgit/librejs.git/tree/README">README
file</a>.</p>
+
<p>If you need any assistance releasing your JavaScript under free
licenses, please contact <a
href="mailto:help-librejs@gnu.org">help-librejs@gnu.org</a>.</p>
> _______________________________________________________
>
> Reply to this item at:
>
> <https://savannah.gnu.org/bugs/?61631>
>
> _______________________________________________
> Message sent via Savannah
> https://savannah.gnu.org/
>
Best,
Yuchen
--
PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0
<https://ypei.me/assets/ypei-pubkey.txt>
signature.asc
Description: PGP signature