Fix for the last broken discourse-details qunit test

This commit is contained in:
David Taylor
2017-07-11 22:43:33 +01:00
parent c8e9f4bd3a
commit 2808e3f63e

View File

@ -71,8 +71,8 @@ test('details button', (assert) => {
andThen(() => {
const textarea = findTextarea();
textarea.selectionStart = 7;
textarea.selectionEnd = 28;
textarea.selectionStart = 8;
textarea.selectionEnd = 29;
});
click('button.options');
@ -86,7 +86,7 @@ test('details button', (assert) => {
);
const textarea = findTextarea();
assert.equal(textarea.selectionStart, 26, 'it should start highlighting at the right position');
assert.equal(textarea.selectionEnd, 46, 'it should end highlighting at the right position');
assert.equal(textarea.selectionStart, 27, 'it should start highlighting at the right position');
assert.equal(textarea.selectionEnd, 47, 'it should end highlighting at the right position');
});
});