summaryrefslogtreecommitdiff
path: root/src/client-tests
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-05-28 10:14:06 +0300
committerAlon Levy <alon@pobox.com>2015-06-04 14:22:19 +0300
commit6ed6f96b1c2daa3170fdf60728edcb9080a1d3a2 (patch)
treedaaaadba26ed6d53e0bc169ed2c66254ea3dda72 /src/client-tests
parenta1e13b27982d196b24ebadb10cfe12d0f56dac6e (diff)
add copyright and license headers for GNU AGPL v3
Diffstat (limited to 'src/client-tests')
-rw-r--r--src/client-tests/anotherScript.js18
-rw-r--r--src/client-tests/base.js18
-rw-r--r--src/client-tests/run_tests.js18
-rw-r--r--src/client-tests/test2.js18
-rw-r--r--src/client-tests/test_analyzer.js18
-rw-r--r--src/client-tests/test_app.js18
-rw-r--r--src/client-tests/test_globals.js18
-rw-r--r--src/client-tests/test_require_js.js18
-rw-r--r--src/client-tests/test_script_jsdom.js18
-rw-r--r--src/client-tests/test_util.js18
-rw-r--r--src/client-tests/util/RhiziHTTPServer.py17
11 files changed, 197 insertions, 0 deletions
diff --git a/src/client-tests/anotherScript.js b/src/client-tests/anotherScript.js
index 93da9fbf..3b65bab1 100644
--- a/src/client-tests/anotherScript.js
+++ b/src/client-tests/anotherScript.js
@@ -1,2 +1,20 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
debugger
console.log(window.__myObject);
diff --git a/src/client-tests/base.js b/src/client-tests/base.js
index 64c34b3a..e922e0f1 100644
--- a/src/client-tests/base.js
+++ b/src/client-tests/base.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
var fs = require('fs'),
jsdom = require('jsdom'),
addScript = require('./test_util').addScript;
diff --git a/src/client-tests/run_tests.js b/src/client-tests/run_tests.js
index bfc129eb..fd440fe7 100644
--- a/src/client-tests/run_tests.js
+++ b/src/client-tests/run_tests.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
var fs = require('fs');
var spawn = require('child_process').spawn;
diff --git a/src/client-tests/test2.js b/src/client-tests/test2.js
index 0f8db81f..a8cf9368 100644
--- a/src/client-tests/test2.js
+++ b/src/client-tests/test2.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
define('test2', function() {
console.log('hello from test2 factory');
return {'me': 'not you'};
diff --git a/src/client-tests/test_analyzer.js b/src/client-tests/test_analyzer.js
index 441f0dde..593e39f1 100644
--- a/src/client-tests/test_analyzer.js
+++ b/src/client-tests/test_analyzer.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
var base = require('./base');
var data = [
diff --git a/src/client-tests/test_app.js b/src/client-tests/test_app.js
index 6696c1fc..b8b36193 100644
--- a/src/client-tests/test_app.js
+++ b/src/client-tests/test_app.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
// mocks just to all run_tests to succeed
if (typeof define == 'undefined') {
function define(mod, cb) {
diff --git a/src/client-tests/test_globals.js b/src/client-tests/test_globals.js
index 03dd1cf9..04345c36 100644
--- a/src/client-tests/test_globals.js
+++ b/src/client-tests/test_globals.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
var base = require('./base');
var util = require('../src/util');
diff --git a/src/client-tests/test_require_js.js b/src/client-tests/test_require_js.js
index aa71018e..3ee63e74 100644
--- a/src/client-tests/test_require_js.js
+++ b/src/client-tests/test_require_js.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
var jsdom = require("jsdom").jsdom;
var document = jsdom();
var window = document.parentWindow;
diff --git a/src/client-tests/test_script_jsdom.js b/src/client-tests/test_script_jsdom.js
index 1ae5835f..53fca12a 100644
--- a/src/client-tests/test_script_jsdom.js
+++ b/src/client-tests/test_script_jsdom.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
var jsdom = require("jsdom").jsdom;
var window = jsdom().parentWindow;
diff --git a/src/client-tests/test_util.js b/src/client-tests/test_util.js
index 7780b0ad..ab829310 100644
--- a/src/client-tests/test_util.js
+++ b/src/client-tests/test_util.js
@@ -1,3 +1,21 @@
+/*
+ This file is part of rhizi, a collaborative knowledge graph editor.
+ Copyright (C) 2014-2015 Rhizi
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
function new_deffer() {
var deffer = {
cb: null,
diff --git a/src/client-tests/util/RhiziHTTPServer.py b/src/client-tests/util/RhiziHTTPServer.py
index 29e8980d..55e3e13d 100644
--- a/src/client-tests/util/RhiziHTTPServer.py
+++ b/src/client-tests/util/RhiziHTTPServer.py
@@ -1,3 +1,20 @@
+# This file is part of rhizi, a collaborative knowledge graph editor.
+# Copyright (C) 2014-2015 Rhizi
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
"""
Inherits from python-2 SimpleHTTPServer (same bug exists in python3
http.server) to fix issue where query argument is mistakenly treated as a