void () { doTest("<foo bar<caret>", '=', "<foo bar=\"<caret>\""); WebEditorOptions.getInstance().setInsertQuotesForAttributeValue(false); try { doTest("<foo bar<caret>", '=', "<foo bar=<caret>"); } finally { WebEditorOptions.getInstance().setInsertQuotesForAttributeValue(true); } }