Serialize and deserialize vcs in JS
diff --git a/public/js/SpecRunner.html b/public/js/SpecRunner.html
deleted file mode 100644
index f315efa..0000000
--- a/public/js/SpecRunner.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title>Jasmine Spec Runner v2.1.1</title>
-
- <link rel="shortcut icon" type="image/png" href="lib/jasmine-2.1.1/jasmine_favicon.png">
- <link rel="stylesheet" href="lib/jasmine-2.1.1/jasmine.css">
-
- <script src="lib/jasmine-2.1.1/jasmine.js"></script>
- <script src="lib/jasmine-2.1.1/jasmine-html.js"></script>
- <script src="lib/jasmine-2.1.1/boot.js"></script>
-
- <!-- include source files here... -->
- <script src="src/hint.js"></script>
-
- <!-- include spec files here... -->
- <script src="spec/hintSpec.js"></script>
-</head>
-
-<body>
-</body>
-</html>
diff --git a/public/js/runner/hint.html b/public/js/runner/hint.html
new file mode 100644
index 0000000..36538fd
--- /dev/null
+++ b/public/js/runner/hint.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Spec Runner for Hint Helper</title>
+ <link rel="shortcut icon" type="image/png" href="../lib/jasmine-2.1.1/jasmine_favicon.png">
+ <link rel="stylesheet" href="../lib/jasmine-2.1.1/jasmine.css">
+ <script src="../lib/jasmine-2.1.1/jasmine.js"></script>
+ <script src="../lib/jasmine-2.1.1/jasmine-html.js"></script>
+ <script src="../lib/jasmine-2.1.1/boot.js"></script>
+ <script src="../src/hint.js"></script>
+ <script src="../spec/hintSpec.js"></script>
+</head>
+<body>
+</body>
+</html>
diff --git a/public/js/runner/vc.html b/public/js/runner/vc.html
new file mode 100644
index 0000000..e010587
--- /dev/null
+++ b/public/js/runner/vc.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Spec Runner for Virtual Collection Builder</title>
+ <link rel="shortcut icon" type="image/png" href="../lib/jasmine-2.1.1/jasmine_favicon.png">
+ <link rel="stylesheet" href="../lib/jasmine-2.1.1/jasmine.css">
+ <script src="../lib/jasmine-2.1.1/jasmine.js"></script>
+ <script src="../lib/jasmine-2.1.1/jasmine-html.js"></script>
+ <script src="../lib/jasmine-2.1.1/boot.js"></script>
+ <script src="../src/vc.js"></script>
+ <script src="../spec/vcSpec.js"></script>
+</head>
+<body>
+</body>
+</html>
diff --git a/public/js/spec/hintSpec.js b/public/js/spec/hintSpec.js
index ee49b40..80807ff 100644
--- a/public/js/spec/hintSpec.js
+++ b/public/js/spec/hintSpec.js
@@ -678,12 +678,13 @@
expect(inputField.mirror.style.top.match(/^(\d+)px$/)[1]).toBeGreaterThan(20);
});
+/*
it('should be correctly triggerable', function () {
// https://developer.mozilla.org/samples/domref/dispatchEvent.html
var hint = KorAP.Hint.create({ "inputField" : input });
emitKeyboardEvent(hint.inputField.element, "keypress", 20);
});
-
+*/
});
diff --git a/public/js/src/hint.js b/public/js/src/hint.js
index 3c2e3ca..966cc78 100644
--- a/public/js/src/hint.js
+++ b/public/js/src/hint.js
@@ -39,7 +39,7 @@
};
// Default log message
- KorAP.log = function (type, msg) {
+ KorAP.log = KorAP.log || function (type, msg) {
console.log(type + ": " + msg);
};