From 66c8d1e3035ad3915c28e73e5fd38c302d14a50c Mon Sep 17 00:00:00 2001 From: Randy Edmunds Date: Mon, 7 May 2012 16:43:43 -0700 Subject: [PATCH] add unit test for brackets issue 732 --- .../spec/InlineEditorProviders-test-files/test1.html | 1 + test/spec/InlineEditorProviders-test.js | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/test/spec/InlineEditorProviders-test-files/test1.html b/test/spec/InlineEditorProviders-test-files/test1.html index 75355c4b02e..2dfddb6ddf8 100644 --- a/test/spec/InlineEditorProviders-test-files/test1.html +++ b/test/spec/InlineEditorProviders-test-files/test1.html @@ -8,5 +8,6 @@ {{3}}
+
\ No newline at end of file diff --git a/test/spec/InlineEditorProviders-test.js b/test/spec/InlineEditorProviders-test.js index 1162a41c415..02f40bcbdca 100644 --- a/test/spec/InlineEditorProviders-test.js +++ b/test/spec/InlineEditorProviders-test.js @@ -264,6 +264,18 @@ define(function (require, exports, module) { }); }); + it("should also open a class selector", function () { + initInlineTest("test1.html", 7); + + runs(function () { + var inlineWidget = EditorManager.getCurrentFullEditor().getInlineWidgets()[0]; + var inlinePos = inlineWidget.editors[0].getCursorPos(); + + // verify cursor position in inline editor + expect(inlinePos).toEqual(this.infos["test1.css"].offsets[1]); + }); + }); + it("should open an id selector", function () { initInlineTest("test1.html", 2);