From 43502637288f9f60019be2759e5049d0fe9377fe Mon Sep 17 00:00:00 2001 From: hackademix Date: Tue, 2 Oct 2018 15:50:23 +0200 Subject: Jasmine-based automated tests suite. --- test/resources/app-trilicensed.js | 1 + test/resources/index.html | 38 ++++++++++++++++++++++++++++++++++++++ test/resources/jquery.js | 1 + test/resources/jslicense.html | 25 +++++++++++++++++++++++++ test/resources/proprietary.js | 1 + test/resources/tracker.js | 1 + 6 files changed, 67 insertions(+) create mode 100644 test/resources/app-trilicensed.js create mode 100644 test/resources/index.html create mode 100644 test/resources/jquery.js create mode 100644 test/resources/jslicense.html create mode 100644 test/resources/proprietary.js create mode 100644 test/resources/tracker.js (limited to 'test/resources') diff --git a/test/resources/app-trilicensed.js b/test/resources/app-trilicensed.js new file mode 100644 index 0000000..7b2c2ea --- /dev/null +++ b/test/resources/app-trilicensed.js @@ -0,0 +1 @@ +document.write(`

Executing ${document.currentScript.src}

`); diff --git a/test/resources/index.html b/test/resources/index.html new file mode 100644 index 0000000..c5f364c --- /dev/null +++ b/test/resources/index.html @@ -0,0 +1,38 @@ + + + + + + LibreJS test document + + + +

LibreJS test document

+JavaScript license information + + + + + + diff --git a/test/resources/jquery.js b/test/resources/jquery.js new file mode 100644 index 0000000..7b2c2ea --- /dev/null +++ b/test/resources/jquery.js @@ -0,0 +1 @@ +document.write(`

Executing ${document.currentScript.src}

`); diff --git a/test/resources/jslicense.html b/test/resources/jslicense.html new file mode 100644 index 0000000..0cd0449 --- /dev/null +++ b/test/resources/jslicense.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + +
Fake jQueryExpat +jquery-1.7.tar.gz
App specific script, tri-licensed (2 free and 1 proprietary license) +GNU V3 +
+Expat +
+Proprietary, optional
app-trilicensed.js
App specific script, proprietary only +Proprietaryproprietary.js
diff --git a/test/resources/proprietary.js b/test/resources/proprietary.js new file mode 100644 index 0000000..7b2c2ea --- /dev/null +++ b/test/resources/proprietary.js @@ -0,0 +1 @@ +document.write(`

Executing ${document.currentScript.src}

`); diff --git a/test/resources/tracker.js b/test/resources/tracker.js new file mode 100644 index 0000000..7b2c2ea --- /dev/null +++ b/test/resources/tracker.js @@ -0,0 +1 @@ +document.write(`

Executing ${document.currentScript.src}

`); -- cgit v1.2.3