FEATURE: Allow overriding text size from a different device (#6955)

This brings the feature in line with the theme selection system
This commit is contained in:
David Taylor
2019-01-28 11:19:50 +00:00
committed by GitHub
parent 244628ed98
commit aca0b32fda
10 changed files with 56 additions and 20 deletions

View File

@ -135,17 +135,13 @@ QUnit.test("font size change", async assert => {
await savePreferences();
assert.equal($.cookie("text_size"), "larger", "cookie is set");
assert.equal($.cookie("text_size"), "larger|1", "cookie is set");
await click(".text-size input[type=checkbox]");
await expandSelectKit(".text-size .combobox");
await selectKitSelectRowByValue("largest", ".text-size .combobox");
await savePreferences();
assert.equal(
$.cookie("text_size"),
null,
"cookie is unset when matches user preference"
);
assert.equal($.cookie("text_size"), "larger|1", "cookie remains the same");
$.removeCookie("text_size");
});

View File

@ -106,7 +106,9 @@ export default {
}
],
user: {
user_option: {},
user_option: {
text_size_seq: 1
},
id: 19,
username: "eviltrout",
uploaded_avatar_id: null,