Fix #55 - Show annotation assistant bar after blur
Change-Id: I74c073a29ae61f393a8f097b92f1b7a5490b658e
diff --git a/dev/js/spec/hintSpec.js b/dev/js/spec/hintSpec.js
index fe96f79..426bb96 100644
--- a/dev/js/spec/hintSpec.js
+++ b/dev/js/spec/hintSpec.js
@@ -343,6 +343,21 @@
hint.show(true);
expect(hint.active()).toBeFalsy();
});
+
+
+ it('should show the assistant bar on blur', function () {
+ var hint = hintClass.create({
+ inputField : input
+ });
+ // Fine
+ hint.inputField().insert('der Baum corenlp/');
+ hint.show(true);
+ expect(hint.active()).toBeTruthy();
+
+ // Blur
+ hint.active().hideWithoutDestruction();
+ expect(hint.active()).toBeFalsy();
+ });
xit('should remove all menus on escape');
});