Return cursor position for query object (fixes #228)

Change-Id: I8a7e872dfcce38d2f525d07c1bb3fc84f25250c3
diff --git a/dev/js/spec/hintSpec.js b/dev/js/spec/hintSpec.js
index cefd428..e98b92a 100644
--- a/dev/js/spec/hintSpec.js
+++ b/dev/js/spec/hintSpec.js
@@ -139,6 +139,8 @@
       expect(input.style.left).toEqual("30px");
       expect(inputField.mirror().style.left.match(/^(\d+)px$/)[1]).toBeGreaterThan(29);
       expect(inputField.mirror().style.top.match(/^(\d+)px$/)[1]).toBeGreaterThan(20);
+      expect(inputField.selectionRange()[0]).toEqual(5);
+      expect(inputField.selectionRange()[1]).toEqual(5);
     });
 
     it('should have a correct context', function () {