Appendix C Tests
In order to better understand how LibreJS works, you can try to visit
these pages with LibreJS installed and enabled and see how they are
is being executed.
The on-page script here is trivial and uses a built-in method, but the
external script in this page is nontrivial (defines a function.) The
external script is blocked, the inline script is executed.
This page contains nontrivial code on page, and trivial code in its
external script is never analyzed, since the nontrivial conditions are
already met in the page.
inline is executed, but the external file is blocked.
- http://lduros.net/assets/librejs/tests/intrinsec-event/ This page
contains trivial on-page code, with an intrinsec event in an html
and loads an external script using the html <script> tag with the src
attribute. The external script is free (GPL v3), and since it is only
nontrivial because it defines a function, the on-page trivial code is
external script that is free. Since no function is defined, the external
script is being analyzed. The external script is free. Trivial here is
not allowed because the external script, although free, writes a
script. The inline trivial script should also have a free license notice
for it to be interpreted.
This is a real-life example of a small jQuery plugin. The on-page
licensed. The shelltypist.js file has a free license as well. All
licenses are defined between
This is the same page than the previous example, except it does not have
a free license for the main HTML page on-page script. While the actual
code there is trivial, since jQuery defines methods that make use of
- http://lduros.net/assets/librejs/tests/test-labels/ This page
information in the file, as it has no
comment. It would be considered nonfree, however, the page itself uses
that contains a properly formatted table with the required data on the
version of jQuery linked from the original page is the one listed there,