Fixed init value of string fields in virtual corpora
Change-Id: I7d9bd8f3a2d440cc6ef9a07f88d1058b65793f63
diff --git a/dev/js/spec/vcSpec.js b/dev/js/spec/vcSpec.js
index ae62f10..0c86d85 100644
--- a/dev/js/spec/vcSpec.js
+++ b/dev/js/spec/vcSpec.js
@@ -140,6 +140,7 @@
// Set values
doc.key("title");
+
doc.value("Der alte Mann");
expect(doc.matchop()).toEqual('eq');
expect(doc.key()).toEqual("title");
@@ -2218,6 +2219,14 @@
ul.getElementsByTagName('li')[1].click();
expect(vc.element().firstChild.children[1].tagName).toEqual("SPAN");
expect(vc.element().firstChild.children[1].innerText).toEqual("ne");
+
+ // Click on text
+ expect(vc.element().firstChild.children[2].innerText).toEqual("⋯");
+ vc.element().firstChild.children[2].click();
+
+ // Blur text element
+ expect(vc.element().firstChild.children[2].firstChild.value).toEqual('');
+
// blur
document.body.click();
});